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.001114/0.001114, allocations: 106.4 kB / 17.21 MB, free: 6.27 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.001214/0.001214, allocations: 194 kB / 18.12 MB, free: 5.363 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.321/1.321, allocations: 222.9 MB / 241.8 MB, free: 15.55 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.2024/0.2024, allocations: 44.17 MB / 336.1 MB, free: 3.023 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 68.58 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1205, allocations: 60.82 MB / 468.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001934/0.1224, allocations: 0.5333 MB / 469.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003136/0.1256, allocations: 2.057 MB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.375e-05/0.1256, allocations: 0 / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.105e-05/0.1257, allocations: 0 / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.129e-05/0.1257, allocations: 0 / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.1268, allocations: 287.3 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.551e-05/0.1269, allocations: 4 kB / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.748e-05/0.1269, allocations: 0 / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.7e-05/0.1269, allocations: 4 kB / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03379/0.1607, allocations: 3.206 MB / 474.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.1608, allocations: 0 / 474.7 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.076e-05/0.1609, allocations: 4 kB / 474.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.1609, allocations: 3.984 kB / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.668e-05/0.1609, allocations: 3.938 kB / 474.7 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.762e-05/0.161, allocations: 19.92 kB / 474.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.161, allocations: 0 / 474.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.161, allocations: 0 / 474.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.161, allocations: 4 kB / 474.7 MB, free: 9.137 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.0002978/0.1613, allocations: 315.5 kB / 475.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1614, allocations: 8.031 kB / 475.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.589e-05/0.1614, allocations: 106 kB / 475.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.1617, allocations: 88.22 kB / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.1618, allocations: 243.7 kB / 475.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.1619, allocations: 150.9 kB / 475.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/0.1619, allocations: 154.5 kB / 475.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.135e-05/0.162, allocations: 104.9 kB / 475.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.162, allocations: 75.28 kB / 476 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.1621, allocations: 158.6 kB / 476.1 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-05/0.1621, allocations: 150.6 kB / 476.3 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.934e-05/0.1622, allocations: 154.6 kB / 476.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002767/0.1625, allocations: 438 kB / 476.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.738e-05/0.1626, allocations: 181 kB / 477 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.939e-05/0.1626, allocations: 88.14 kB / 477.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1627, allocations: 75.28 kB / 477.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.1627, allocations: 105.8 kB / 477.3 MB, free: 6.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.293e-06/0.1627, allocations: 0 / 477.3 MB, free: 6.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.521e-05/0.1628, allocations: 25.7 kB / 477.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.1629, allocations: 186.1 kB / 477.5 MB, free: 6.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.85e-05/0.163, allocations: 89.86 kB / 477.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.163, allocations: 25.7 kB / 477.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.826e-05/0.1631, allocations: 88.08 kB / 477.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-06/0.1631, allocations: 3.938 kB / 477.7 MB, free: 5.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.1631, allocations: 13.72 kB / 477.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1632, allocations: 314.8 kB / 478 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.909e-06/0.1633, allocations: 128 / 478 MB, free: 5.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.1633, allocations: 17.72 kB / 478 MB, free: 5.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.04e-05/0.1633, allocations: 79.28 kB / 478.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.791e-05/0.1634, allocations: 75.28 kB / 478.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 0.0001279/0.1635, allocations: 33.64 kB / 478.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.1635, allocations: 79.28 kB / 478.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.1636, allocations: 79.22 kB / 478.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.801e-05/0.1637, allocations: 158.6 kB / 478.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.995e-05/0.1637, allocations: 83.27 kB / 478.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-05/0.1638, allocations: 158.5 kB / 478.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.804e-05/0.1639, allocations: 75.28 kB / 478.8 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.1639, allocations: 83.22 kB / 478.9 MB, free: 4.695 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.0001212/0.164, allocations: 260.3 kB / 479.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.1641, allocations: 113 kB / 479.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.1642, allocations: 112 kB / 479.4 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-05/0.1642, allocations: 176.3 kB / 479.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.909e-05/0.1643, allocations: 180.2 kB / 479.7 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.05e-05/0.1644, allocations: 184.2 kB / 479.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.1646, allocations: 409.2 kB / 480.3 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.569e-05/0.1647, allocations: 108.9 kB / 480.4 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.688e-05/0.1647, allocations: 101 kB / 480.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.34e-05/0.1648, allocations: 180.3 kB / 480.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.359e-05/0.1649, allocations: 180.2 kB / 480.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.353e-05/0.165, allocations: 180.2 kB / 481 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.581e-05/0.165, allocations: 188.2 kB / 481.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001781/0.1652, allocations: 299.8 kB / 481.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1654, allocations: 194 kB / 481.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.1654, allocations: 180.3 kB / 481.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.27e-05/0.1655, allocations: 108.9 kB / 482 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/0.1656, allocations: 180.7 kB / 482.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.1657, allocations: 101 kB / 482.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.549e-05/0.1657, allocations: 75.28 kB / 482.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.473e-06/0.1657, allocations: 3.938 kB / 482.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.166, allocations: 7.938 kB / 482.4 MB, free: 1.023 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.0004289/0.1665, allocations: 0.8055 MB / 483.2 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.673e-05/0.1665, allocations: 4.016 kB / 483.2 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1665, allocations: 0 / 483.2 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.276e-06/0.1665, allocations: 0 / 483.2 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.1669, allocations: 0.5302 MB / 483.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.1673, allocations: 175.6 kB / 483.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.1675, allocations: 0.6731 MB / 484.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.113e-05/0.1675, allocations: 0 / 484.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.462e-05/0.1676, allocations: 7.438 kB / 484.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1676, allocations: 0 / 484.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01173/0.1793, allocations: 0.8895 MB / 485.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000192/0.1795, allocations: 201.7 kB / 485.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.028, allocations: 0 / 485.6 MB, free: 13.68 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