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: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001221/0.001221, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.359/1.359, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.203/0.203, allocations: 44.18 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.75 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 60.84 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001752/0.1032, allocations: 487.8 kB / 470.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.1061, allocations: 1.998 MB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.606e-05/0.1061, allocations: 0 / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.1061, allocations: 4 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.453e-05/0.1062, allocations: 0 / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.1073, allocations: 374.8 kB / 472.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.8e-05/0.1074, allocations: 3.938 kB / 472.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.45e-05/0.1074, allocations: 8 kB / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.384e-05/0.1075, allocations: 0 / 472.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01566/0.1231, allocations: 3.34 MB / 476.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.1232, allocations: 0 / 476.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.904e-05/0.1232, allocations: 11.98 kB / 476.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.061e-05/0.1233, allocations: 3.984 kB / 476.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.656e-05/0.1233, allocations: 4 kB / 476.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.1234, allocations: 7.938 kB / 476.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1234, allocations: 0 / 476.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1234, allocations: 0 / 476.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.1234, allocations: 7.938 kB / 476.2 MB, free: 8.75 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.0002689/0.1237, allocations: 319.5 kB / 476.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.1238, allocations: 8.031 kB / 476.5 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.124, allocations: 88.2 kB / 476.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.1241, allocations: 239.6 kB / 476.8 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.1241, allocations: 150.9 kB / 476.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.1242, allocations: 158.7 kB / 477.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.656e-05/0.1243, allocations: 105 kB / 477.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.1243, allocations: 75.28 kB / 477.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.1243, allocations: 154.6 kB / 477.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/0.1244, allocations: 150.6 kB / 477.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.098e-05/0.1244, allocations: 154.5 kB / 477.7 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002367/0.1247, allocations: 445.9 kB / 478.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.531e-05/0.1248, allocations: 173.1 kB / 478.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.1248, allocations: 84.08 kB / 478.4 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.1248, allocations: 79.31 kB / 478.5 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.991e-05/0.1249, allocations: 117.8 kB / 478.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.1249, allocations: 0 / 478.6 MB, free: 6.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.801e-05/0.125, allocations: 29.7 kB / 478.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.125, allocations: 178.1 kB / 478.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.153e-05/0.1251, allocations: 93.86 kB / 478.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.1252, allocations: 25.7 kB / 478.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.392e-05/0.1252, allocations: 88.25 kB / 479 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-06/0.1252, allocations: 4 kB / 479 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.25e-05/0.1252, allocations: 9.719 kB / 479 MB, free: 5.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.676e-05/0.1253, allocations: 310.8 kB / 479.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.448e-06/0.1253, allocations: 0 / 479.3 MB, free: 5.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.219e-05/0.1254, allocations: 13.72 kB / 479.3 MB, free: 5.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.635e-05/0.1254, allocations: 75.28 kB / 479.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/0.1254, allocations: 79.22 kB / 479.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.338e-05/0.1255, allocations: 41.67 kB / 479.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.1255, allocations: 79.28 kB / 479.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/0.1256, allocations: 83.2 kB / 479.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.856e-05/0.1256, allocations: 158.5 kB / 479.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.367e-05/0.1256, allocations: 75.28 kB / 479.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.063e-05/0.1257, allocations: 154.5 kB / 480.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.078e-05/0.1258, allocations: 83.28 kB / 480.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.1258, allocations: 75.28 kB / 480.2 MB, free: 4.422 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.0001089/0.1259, allocations: 260.4 kB / 480.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-05/0.126, allocations: 120.8 kB / 480.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.126, allocations: 104.1 kB / 480.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.265e-05/0.1261, allocations: 184.2 kB / 480.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.359e-05/0.1261, allocations: 180.3 kB / 481 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.652e-05/0.1262, allocations: 176.3 kB / 481.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.1264, allocations: 409.1 kB / 481.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.25e-05/0.1264, allocations: 105 kB / 481.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.193e-05/0.1265, allocations: 112.9 kB / 481.8 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.499e-05/0.1265, allocations: 180.3 kB / 482 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.885e-05/0.1266, allocations: 180.2 kB / 482.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.402e-05/0.1266, allocations: 184.2 kB / 482.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.245e-05/0.1267, allocations: 180.6 kB / 482.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.1268, allocations: 315.7 kB / 482.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.1269, allocations: 182.1 kB / 483 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.307e-05/0.127, allocations: 180.2 kB / 483.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.171e-05/0.1271, allocations: 105 kB / 483.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.265e-05/0.1271, allocations: 180.2 kB / 483.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.1272, allocations: 105 kB / 483.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.986e-05/0.1272, allocations: 83.28 kB / 483.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1272, allocations: 0 / 483.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.1274, allocations: 4 kB / 483.7 MB, free: 0.7422 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 9.316e-05/0.1275, allocations: 166.5 kB / 483.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.478e-05/0.1276, allocations: 0 / 483.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1276, allocations: 7.938 kB / 483.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.142e-06/0.1276, allocations: 0 / 483.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.128, allocations: 473 kB / 484.3 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001946/0.1282, allocations: 185.8 kB / 484.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.1284, allocations: 0.6729 MB / 485.2 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.1284, allocations: 7.438 kB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1284, allocations: 3.938 kB / 485.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Templates: time 0.001636/0.13, allocations: 363.7 kB / 485.5 MB, free: 14.82 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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