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.001056/0.001056, allocations: 104.7 kB / 17.63 MB, free: 5.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.001104/0.001104, allocations: 192 kB / 18.56 MB, free: 4.434 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.327/1.327, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.1932/0.1932, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 66.11 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0891/0.0903, allocations: 60.82 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001358/0.09169, allocations: 483.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.09395, allocations: 2.014 MB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.31e-05/0.09398, allocations: 0 / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.766e-06/0.09399, allocations: 0 / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.464e-05/0.09402, allocations: 0 / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008295/0.09485, allocations: 374.8 kB / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.899e-05/0.09489, allocations: 3.938 kB / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.717e-05/0.09493, allocations: 0 / 472.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.09494, allocations: 7.984 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01395/0.1089, allocations: 3.346 MB / 475.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.1089, allocations: 0 / 475.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.596e-05/0.109, allocations: 4 kB / 475.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.829e-06/0.109, allocations: 4 kB / 475.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.512e-05/0.109, allocations: 0 / 475.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.912e-05/0.1091, allocations: 19.84 kB / 475.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1091, allocations: 0 / 475.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1091, allocations: 4 kB / 475.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1091, allocations: 4 kB / 475.6 MB, free: 8.637 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.0002426/0.1094, allocations: 315.6 kB / 475.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.1094, allocations: 8.031 kB / 475.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.087e-05/0.1095, allocations: 106 kB / 476 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.1097, allocations: 88.2 kB / 476.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1098, allocations: 239.7 kB / 476.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.625e-05/0.1098, allocations: 154.9 kB / 476.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.1099, allocations: 158.5 kB / 476.6 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.691e-05/0.1099, allocations: 104.9 kB / 476.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.11, allocations: 75.28 kB / 476.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.11, allocations: 158.6 kB / 477 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.425e-05/0.1101, allocations: 154.6 kB / 477.1 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.904e-05/0.1101, allocations: 150.6 kB / 477.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002287/0.1103, allocations: 438 kB / 477.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.882e-05/0.1104, allocations: 181 kB / 477.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.764e-05/0.1105, allocations: 88.19 kB / 478 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.1105, allocations: 75.28 kB / 478 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.1105, allocations: 109.8 kB / 478.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.32e-07/0.1105, allocations: 0 / 478.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 5.562e-05/0.1106, allocations: 25.7 kB / 478.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.1107, allocations: 182.1 kB / 478.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.834e-05/0.1107, allocations: 97.86 kB / 478.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.1108, allocations: 25.7 kB / 478.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.489e-05/0.1108, allocations: 88.02 kB / 478.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-06/0.1108, allocations: 0 / 478.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-05/0.1108, allocations: 13.72 kB / 478.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.1109, allocations: 310.8 kB / 478.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.677e-06/0.1109, allocations: 0 / 478.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.947e-05/0.111, allocations: 17.83 kB / 478.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.145e-05/0.111, allocations: 79.31 kB / 479 MB, free: 5.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/0.111, allocations: 75.28 kB / 479 MB, free: 4.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.964e-05/0.1111, allocations: 33.64 kB / 479.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.1111, allocations: 83.22 kB / 479.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/0.1111, allocations: 83.22 kB / 479.2 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.015e-05/0.1112, allocations: 154.6 kB / 479.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.693e-05/0.1112, allocations: 75.28 kB / 479.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-05/0.1113, allocations: 166.5 kB / 479.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.1113, allocations: 75.28 kB / 479.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.1114, allocations: 83.22 kB / 479.8 MB, free: 4.188 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.569e-05/0.1115, allocations: 264.3 kB / 480 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.1115, allocations: 105 kB / 480.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.1116, allocations: 112 kB / 480.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.005e-05/0.1116, allocations: 180.2 kB / 480.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-05/0.1117, allocations: 176.3 kB / 480.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.184e-05/0.1117, allocations: 184.2 kB / 480.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001966/0.1119, allocations: 405.2 kB / 481.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-05/0.112, allocations: 112.9 kB / 481.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.56e-05/0.112, allocations: 101 kB / 481.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-05/0.1121, allocations: 180.3 kB / 481.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.277e-05/0.1121, allocations: 180.2 kB / 481.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.114e-05/0.1122, allocations: 180.3 kB / 481.9 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.607e-05/0.1122, allocations: 184.5 kB / 482.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.1123, allocations: 303.8 kB / 482.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.1124, allocations: 194 kB / 482.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/0.1125, allocations: 180.2 kB / 482.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.575e-05/0.1126, allocations: 108.9 kB / 482.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.1126, allocations: 180.3 kB / 483 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.1126, allocations: 101 kB / 483.1 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.807e-05/0.1127, allocations: 75.28 kB / 483.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1127, allocations: 3.938 kB / 483.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.1129, allocations: 4 kB / 483.2 MB, free: 0.5234 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.000309/0.1132, allocations: 0.8049 MB / 484 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.507e-05/0.1133, allocations: 0 / 484 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1133, allocations: 3.938 kB / 484 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.636e-06/0.1133, allocations: 7.938 kB / 484 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003007/0.1136, allocations: 459.7 kB / 484.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000284/0.1139, allocations: 185.8 kB / 484.7 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.1141, allocations: 0.669 MB / 485.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.86e-05/0.1141, allocations: 7.922 kB / 485.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.1141, allocations: 7.438 kB / 485.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1142, allocations: 0 / 485.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2587/0.3728, allocations: 0.9965 MB / 486.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.513, allocations: 4.312 kB / 486.3 MB, free: 13.36 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