Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 106.9 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 193.3 kB / 18.25 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2069/0.2069, allocations: 44.18 MB / 336.2 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.58 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1204, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001752/0.1222, allocations: 0.5333 MB / 469.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.125, allocations: 1.995 MB / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.421e-05/0.125, allocations: 0 / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.641e-05/0.1251, allocations: 4 kB / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.23e-05/0.1251, allocations: 7.938 kB / 471.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1263, allocations: 342.2 kB / 471.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.201e-05/0.1264, allocations: 4 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.1264, allocations: 0 / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.614e-05/0.1265, allocations: 4 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0313/0.1578, allocations: 3.368 MB / 475.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.1578, allocations: 3.938 kB / 475.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.742e-05/0.1579, allocations: 4 kB / 475.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.1579, allocations: 3.984 kB / 475.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.1579, allocations: 0 / 475.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.158, allocations: 19.86 kB / 475.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1581, allocations: 4 kB / 475.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1581, allocations: 0 / 475.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1581, allocations: 0 / 475.1 MB, free: 8.949 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003209/0.1584, allocations: 315.6 kB / 475.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.1585, allocations: 8.031 kB / 475.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1585, allocations: 110 kB / 475.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.1587, allocations: 88.2 kB / 475.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.1589, allocations: 239.7 kB / 475.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.187e-05/0.1589, allocations: 150.9 kB / 476 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/0.159, allocations: 166.5 kB / 476.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.648e-05/0.1591, allocations: 104.9 kB / 476.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/0.1591, allocations: 75.28 kB / 476.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/0.1592, allocations: 150.6 kB / 476.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-05/0.1592, allocations: 150.6 kB / 476.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.221e-05/0.1593, allocations: 154.6 kB / 476.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002861/0.1596, allocations: 446 kB / 477.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.356e-05/0.1597, allocations: 173 kB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.344e-05/0.1597, allocations: 80.14 kB / 477.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.1598, allocations: 75.28 kB / 477.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/0.1598, allocations: 113.8 kB / 477.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.232e-06/0.1598, allocations: 0 / 477.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.789e-05/0.1599, allocations: 33.7 kB / 477.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/0.16, allocations: 178.1 kB / 477.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.349e-05/0.1601, allocations: 89.86 kB / 477.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.1601, allocations: 25.7 kB / 478 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.633e-05/0.1602, allocations: 88.27 kB / 478 MB, free: 5.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-06/0.1602, allocations: 0 / 478 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.443e-05/0.1602, allocations: 13.66 kB / 478.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1603, allocations: 314.8 kB / 478.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.829e-06/0.1603, allocations: 4 kB / 478.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.542e-05/0.1603, allocations: 13.7 kB / 478.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.716e-05/0.1604, allocations: 75.28 kB / 478.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.43e-05/0.1604, allocations: 83.25 kB / 478.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.341e-05/0.1605, allocations: 33.64 kB / 478.6 MB, free: 5.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.1605, allocations: 79.28 kB / 478.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/0.1605, allocations: 83.22 kB / 478.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.81e-05/0.1606, allocations: 150.6 kB / 478.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.733e-05/0.1606, allocations: 79.22 kB / 479 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-05/0.1607, allocations: 158.5 kB / 479.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.724e-05/0.1608, allocations: 87.28 kB / 479.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.1608, allocations: 83.27 kB / 479.3 MB, free: 4.5 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001164/0.1609, allocations: 260.3 kB / 479.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.231e-05/0.161, allocations: 105 kB / 479.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.973e-05/0.1611, allocations: 104.1 kB / 479.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.903e-05/0.1611, allocations: 192.2 kB / 479.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.604e-05/0.1612, allocations: 180.3 kB / 480.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.272e-05/0.1612, allocations: 180.2 kB / 480.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.1614, allocations: 401.2 kB / 480.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-05/0.1615, allocations: 108.9 kB / 480.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.589e-05/0.1615, allocations: 105 kB / 480.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.063e-05/0.1616, allocations: 180.3 kB / 481 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.1616, allocations: 180.2 kB / 481.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.113e-05/0.1617, allocations: 180.3 kB / 481.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.648e-05/0.1618, allocations: 188.2 kB / 481.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.1619, allocations: 308.1 kB / 481.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.1619, allocations: 182 kB / 482.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.162, allocations: 184.2 kB / 482.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.1621, allocations: 113 kB / 482.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.1622, allocations: 184.2 kB / 482.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.1622, allocations: 101 kB / 482.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.1622, allocations: 83.28 kB / 482.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1623, allocations: 0 / 482.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.1625, allocations: 0 / 482.7 MB, free: 0.832 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0003308/0.1628, allocations: 0.8054 MB / 483.5 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.303e-05/0.1629, allocations: 4.047 kB / 483.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1629, allocations: 4 kB / 483.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.323e-06/0.1629, allocations: 0 / 483.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.1632, allocations: 455.6 kB / 484 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003415/0.1636, allocations: 189.7 kB / 484.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.1638, allocations: 0.6729 MB / 484.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.794e-05/0.1638, allocations: 0 / 484.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.331e-05/0.1639, allocations: 7.438 kB / 484.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1639, allocations: 0 / 484.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3177/0.4816, allocations: 0.9357 MB / 485.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.4818, allocations: 205.5 kB / 486 MB, free: 13.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/2.623, allocations: 0 / 486 MB, free: 13.53 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches