Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008744/0.0008744, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001118, allocations: 184.9 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.561/1.561, allocations: 205.4 MB / 223.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3517/0.3517, allocations: 43.57 MB / 315 MB, free: 9.059 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005197/0.0005197, allocations: 12 kB / 384.6 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 58.86 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006857/0.1367, allocations: 232.4 kB / 443.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.1386, allocations: 1.401 MB / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.375e-05/0.1386, allocations: 0 / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.337e-05/0.1387, allocations: 0 / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.1387, allocations: 0 / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.1392, allocations: 87.78 kB / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.901e-05/0.1393, allocations: 4 kB / 445.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.626e-05/0.1394, allocations: 0 / 445.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.004e-05/0.1394, allocations: 4 kB / 445.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.479e-05/0.1394, allocations: 0 / 445.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.1395, allocations: 4 kB / 445.2 MB, free: 11.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1397, allocations: 43.95 kB / 445.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-06/0.1397, allocations: 3.938 kB / 445.2 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.363e-05/0.1397, allocations: 25.7 kB / 445.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.1398, allocations: 43.88 kB / 445.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1399, allocations: 4 kB / 445.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1399, allocations: 0 / 445.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1399, allocations: 0 / 445.3 MB, free: 11.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003216/0.1402, allocations: 337.3 kB / 445.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1403, allocations: 12.03 kB / 445.6 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.1403, allocations: 8.875 kB / 445.6 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.1404, allocations: 168.4 kB / 445.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.1404, allocations: 384 / 445.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.1404, allocations: 384 / 445.8 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.721e-05/0.1405, allocations: 38.02 kB / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1406, allocations: 0 / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.1406, allocations: 0 / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.1406, allocations: 0 / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.065e-05/0.1406, allocations: 3.938 kB / 445.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.1408, allocations: 153.7 kB / 446 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.338e-05/0.1408, allocations: 14.58 kB / 446 MB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.083e-05/0.1408, allocations: 8.844 kB / 446 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.031e-06/0.1409, allocations: 96 / 446 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.1409, allocations: 68.2 kB / 446.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.1409, allocations: 0 / 446.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001827/0.1411, allocations: 75.23 kB / 446.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.1412, allocations: 77.11 kB / 446.2 MB, free: 9.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.821e-05/0.1412, allocations: 89.86 kB / 446.3 MB, free: 9.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.1412, allocations: 25.7 kB / 446.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.732e-05/0.1413, allocations: 80.14 kB / 446.4 MB, free: 9.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.1413, allocations: 0 / 446.4 MB, free: 9.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.1413, allocations: 17.72 kB / 446.4 MB, free: 9.684 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1414, allocations: 310.8 kB / 446.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.1414, allocations: 128 / 446.7 MB, free: 9.371 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-06/0.1415, allocations: 7.938 kB / 446.7 MB, free: 9.363 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.022e-05/0.1415, allocations: 64.25 kB / 446.8 MB, free: 9.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1415, allocations: 0 / 446.8 MB, free: 9.285 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.893e-05/0.1416, allocations: 67.34 kB / 446.9 MB, free: 9.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.1416, allocations: 33.64 kB / 446.9 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1416, allocations: 0 / 446.9 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1417, allocations: 0 / 446.9 MB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1417, allocations: 4 kB / 446.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.1417, allocations: 4.094 kB / 446.9 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.1417, allocations: 4 kB / 446.9 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-06/0.1417, allocations: 3.984 kB / 446.9 MB, free: 9.152 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.249e-05/0.1418, allocations: 135.5 kB / 447.1 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-06/0.1418, allocations: 3.938 kB / 447.1 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.024e-05/0.1419, allocations: 3.125 kB / 447.1 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1419, allocations: 0 / 447.1 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1419, allocations: 0 / 447.1 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1419, allocations: 0 / 447.1 MB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.142, allocations: 153.7 kB / 447.2 MB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.142, allocations: 3.938 kB / 447.2 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.142, allocations: 0 / 447.2 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.142, allocations: 3.938 kB / 447.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-06/0.142, allocations: 0 / 447.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.142, allocations: 0 / 447.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.142, allocations: 0 / 447.2 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.629e-05/0.1421, allocations: 94.77 kB / 447.3 MB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.1422, allocations: 85.14 kB / 447.4 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.1422, allocations: 7.938 kB / 447.4 MB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.1422, allocations: 4 kB / 447.4 MB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.336e-05/0.1422, allocations: 0 / 447.4 MB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.1423, allocations: 0 / 447.4 MB, free: 8.559 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.953e-05/0.1423, allocations: 75.28 kB / 447.5 MB, free: 8.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1423, allocations: 0 / 447.5 MB, free: 8.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.1425, allocations: 12 kB / 447.5 MB, free: 8.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003386/0.1429, allocations: 147 kB / 447.6 MB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.143, allocations: 67.39 kB / 447.7 MB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.143, allocations: 0 / 447.7 MB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.143, allocations: 59.34 kB / 447.8 MB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.1432, allocations: 0 / 447.8 MB, free: 8.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002593/0.1435, allocations: 78.77 kB / 447.8 MB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.1438, allocations: 0.6732 MB / 448.5 MB, free: 7.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.483e-06/0.1438, allocations: 4 kB / 448.5 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.399e-05/0.1438, allocations: 7.438 kB / 448.5 MB, free: 7.363 MB / 382.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1438, allocations: 0 / 448.5 MB, free: 7.363 MB / 382.1 MB Notification: Performance of Templates: time 0.003166/0.147, allocations: 0.6955 MB / 449.2 MB, free: 6.668 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches