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.0008879/0.000888, allocations: 95.47 kB / 18 MB, free: 5.602 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.001124/0.001125, allocations: 182.2 kB / 18.91 MB, free: 4.738 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.353/1.353, allocations: 223.3 MB / 243 MB, free: 12 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1934/0.1934, allocations: 44.25 MB / 338.3 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 8 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0005774/0.1043, allocations: 209.3 kB / 473.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.1072, allocations: 2.027 MB / 475.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.227e-05/0.1073, allocations: 0 / 475.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.119e-05/0.1073, allocations: 0 / 475.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.73e-05/0.1073, allocations: 0 / 475.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1083, allocations: 279.3 kB / 475.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.86e-05/0.1084, allocations: 4 kB / 475.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.901e-05/0.1084, allocations: 7.922 kB / 475.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.665e-05/0.1085, allocations: 0 / 475.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03446/0.1429, allocations: 3.208 MB / 478.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.143, allocations: 0 / 478.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.303e-05/0.1431, allocations: 4 kB / 478.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.1431, allocations: 0 / 478.6 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.129e-05/0.1431, allocations: 25.7 kB / 478.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.577e-05/0.1432, allocations: 12 kB / 478.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1432, allocations: 0 / 478.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1432, allocations: 4 kB / 478.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.1432, allocations: 0 / 478.7 MB, free: 8.055 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.1435, allocations: 319.5 kB / 479 MB, free: 7.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1435, allocations: 8.031 kB / 479 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.1437, allocations: 80.22 kB / 479.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.1438, allocations: 243.7 kB / 479.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.723e-05/0.1439, allocations: 154.9 kB / 479.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.1439, allocations: 158.7 kB / 479.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.848e-05/0.144, allocations: 105 kB / 479.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.144, allocations: 75.28 kB / 479.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.116e-05/0.1441, allocations: 154.5 kB / 479.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.075e-05/0.1441, allocations: 150.6 kB / 480.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.714e-05/0.1442, allocations: 158.6 kB / 480.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000249/0.1444, allocations: 445.9 kB / 480.7 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.102e-05/0.1445, allocations: 165.1 kB / 480.8 MB, free: 5.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.146e-05/0.1446, allocations: 88.02 kB / 480.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.1446, allocations: 79.28 kB / 481 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/0.1446, allocations: 109.8 kB / 481.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.312e-06/0.1446, allocations: 0 / 481.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.513e-05/0.1447, allocations: 25.7 kB / 481.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.1448, allocations: 182.1 kB / 481.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.678e-05/0.1449, allocations: 93.86 kB / 481.4 MB, free: 5.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.1449, allocations: 25.83 kB / 481.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.227e-05/0.1449, allocations: 92.11 kB / 481.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-06/0.1449, allocations: 0 / 481.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.145, allocations: 13.66 kB / 481.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.897e-05/0.1451, allocations: 310.8 kB / 481.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.179e-06/0.1451, allocations: 0 / 481.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.653e-05/0.1451, allocations: 17.66 kB / 481.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.466e-05/0.1451, allocations: 75.28 kB / 481.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/0.1452, allocations: 79.31 kB / 482 MB, free: 4.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.722e-05/0.1452, allocations: 37.64 kB / 482 MB, free: 4.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.1453, allocations: 79.28 kB / 482.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.1453, allocations: 79.22 kB / 482.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.949e-05/0.1454, allocations: 154.6 kB / 482.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.1454, allocations: 79.27 kB / 482.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.231e-05/0.1454, allocations: 154.5 kB / 482.6 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.521e-05/0.1455, allocations: 83.28 kB / 482.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.1456, allocations: 87.2 kB / 482.7 MB, free: 3.723 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.0001054/0.1457, allocations: 260.4 kB / 483 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.1457, allocations: 108.9 kB / 483.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.319e-05/0.1458, allocations: 108.1 kB / 483.2 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-05/0.1458, allocations: 184.2 kB / 483.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.187e-05/0.1459, allocations: 180.3 kB / 483.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.772e-05/0.146, allocations: 188.2 kB / 483.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.1462, allocations: 401.2 kB / 484.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.273e-05/0.1462, allocations: 101 kB / 484.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.107e-05/0.1463, allocations: 108.9 kB / 484.3 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-05/0.1463, allocations: 180.3 kB / 484.5 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.859e-05/0.1464, allocations: 184.2 kB / 484.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.732e-05/0.1464, allocations: 180.2 kB / 484.9 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.221e-05/0.1465, allocations: 180.3 kB / 485.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.1466, allocations: 311.7 kB / 485.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.1467, allocations: 186 kB / 485.5 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.1468, allocations: 180.3 kB / 485.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.695e-05/0.1468, allocations: 105 kB / 485.8 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.1469, allocations: 180.6 kB / 486 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.1469, allocations: 105 kB / 486.1 MB, free: 144 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.406e-05/0.147, allocations: 83.27 kB / 486.2 MB, free: 60 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.147, allocations: 4 kB / 486.2 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.1472, allocations: 0 / 486.2 MB, free: 56 kB / 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.000117/0.1474, allocations: 167.1 kB / 486.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.827e-05/0.1474, allocations: 3.938 kB / 486.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1474, allocations: 0 / 486.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.765e-06/0.1474, allocations: 8.094 kB / 486.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.1478, allocations: 0.5185 MB / 486.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001912/0.148, allocations: 187.6 kB / 487.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.1482, allocations: 0.677 MB / 487.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.061e-05/0.1482, allocations: 7.438 kB / 487.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1482, allocations: 0 / 487.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of Templates: time 0.001467/0.1497, allocations: 355.7 kB / 488.1 MB, free: 14.07 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