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.0007793/0.0007794, allocations: 95.03 kB / 17.35 MB, free: 6.344 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.0009123/0.0009122, allocations: 173.6 kB / 18.25 MB, free: 5.504 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.298/1.298, allocations: 223.3 MB / 242.3 MB, free: 14.46 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.2016/0.2016, allocations: 44.24 MB / 337.7 MB, free: 2.406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002882/0.0002882, allocations: 9.875 kB / 410.4 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1023, allocations: 61.92 MB / 472.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0005774/0.1029, allocations: 210.9 kB / 472.6 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.1055, allocations: 2.026 MB / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.113e-05/0.1056, allocations: 0 / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.04e-05/0.1056, allocations: 0 / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.597e-05/0.1056, allocations: 0 / 474.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008269/0.1064, allocations: 279.3 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.082e-05/0.1065, allocations: 11.92 kB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.923e-05/0.1065, allocations: 0 / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.454e-05/0.1065, allocations: 4 kB / 474.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03155/0.1381, allocations: 3.2 MB / 478.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.1381, allocations: 0 / 478.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.671e-05/0.1382, allocations: 4 kB / 478.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-06/0.1382, allocations: 0 / 478.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.422e-05/0.1382, allocations: 33.67 kB / 478.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.019e-05/0.1383, allocations: 19.88 kB / 478.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.1383, allocations: 0 / 478.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1383, allocations: 0 / 478.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.906e-06/0.1383, allocations: 0 / 478.1 MB, free: 7.918 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.0001833/0.1385, allocations: 307.6 kB / 478.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.1385, allocations: 12.02 kB / 478.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.1386, allocations: 110 kB / 478.5 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1387, allocations: 80.22 kB / 478.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.1388, allocations: 243.7 kB / 478.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/0.1389, allocations: 158.9 kB / 479 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.1389, allocations: 158.5 kB / 479.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.776e-05/0.139, allocations: 104.9 kB / 479.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.139, allocations: 75.28 kB / 479.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.1391, allocations: 150.6 kB / 479.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.78e-05/0.1391, allocations: 154.6 kB / 479.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.041e-05/0.1392, allocations: 150.6 kB / 479.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002866/0.1394, allocations: 450 kB / 480.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.211e-05/0.1395, allocations: 173 kB / 480.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.445e-05/0.1396, allocations: 88.12 kB / 480.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1396, allocations: 79.22 kB / 480.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.1396, allocations: 105.8 kB / 480.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.1396, allocations: 0 / 480.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.671e-05/0.1397, allocations: 29.7 kB / 480.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.1398, allocations: 182.1 kB / 480.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.29e-05/0.1398, allocations: 97.8 kB / 481 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.1398, allocations: 25.7 kB / 481 MB, free: 4.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.839e-05/0.1399, allocations: 84.14 kB / 481.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-06/0.1399, allocations: 0 / 481.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.61e-05/0.1399, allocations: 9.719 kB / 481.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.14, allocations: 314.8 kB / 481.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.485e-06/0.14, allocations: 0 / 481.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.039e-05/0.14, allocations: 17.84 kB / 481.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.526e-05/0.1401, allocations: 75.28 kB / 481.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.019e-05/0.1401, allocations: 79.28 kB / 481.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.062e-05/0.1401, allocations: 33.64 kB / 481.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.1402, allocations: 83.22 kB / 481.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.6e-05/0.1402, allocations: 79.22 kB / 481.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.345e-05/0.1403, allocations: 150.6 kB / 481.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.459e-05/0.1403, allocations: 87.25 kB / 482 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.829e-05/0.1403, allocations: 154.5 kB / 482.1 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.1404, allocations: 79.33 kB / 482.2 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.1404, allocations: 79.22 kB / 482.3 MB, free: 3.48 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 9.735e-05/0.1405, allocations: 268.3 kB / 482.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.1406, allocations: 105 kB / 482.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.1406, allocations: 112 kB / 482.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.051e-05/0.1407, allocations: 180.2 kB / 482.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.507e-05/0.1407, allocations: 176.3 kB / 483.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.133e-05/0.1408, allocations: 184.2 kB / 483.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.141, allocations: 405.2 kB / 483.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-05/0.141, allocations: 108.9 kB / 483.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.649e-05/0.141, allocations: 101 kB / 483.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.542e-05/0.1411, allocations: 176.3 kB / 484.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/0.1411, allocations: 188.2 kB / 484.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-05/0.1412, allocations: 176.3 kB / 484.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.118e-05/0.1413, allocations: 188.2 kB / 484.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1414, allocations: 307.7 kB / 484.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/0.1414, allocations: 182.1 kB / 485.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.513e-05/0.1415, allocations: 184.2 kB / 485.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.499e-05/0.1416, allocations: 104.9 kB / 485.4 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.1416, allocations: 184.7 kB / 485.6 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.1417, allocations: 104.9 kB / 485.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.604e-05/0.1417, allocations: 83.22 kB / 485.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1417, allocations: 0 / 485.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002304/0.1419, allocations: 4 kB / 485.7 MB, free: 15.81 MB / 366.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.0002925/0.1422, allocations: 0.8054 MB / 486.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 2.538e-05/0.1423, allocations: 4.047 kB / 486.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.1423, allocations: 0 / 486.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.695e-06/0.1423, allocations: 3.938 kB / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.1426, allocations: 0.5246 MB / 487.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000274/0.1429, allocations: 183.5 kB / 487.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.1431, allocations: 0.6692 MB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.66e-05/0.1431, allocations: 3.984 kB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.057e-06/0.1431, allocations: 11.44 kB / 487.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1431, allocations: 0 / 487.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2241/0.3673, allocations: 0.8196 MB / 488.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002981/0.3676, allocations: 205 kB / 489 MB, free: 12.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.037, allocations: 3.625 kB / 489 MB, free: 12.54 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