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.001194/0.001194, allocations: 113.3 kB / 18.45 MB, free: 4.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.001252/0.001252, allocations: 181.1 kB / 19.38 MB, free: 3.684 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.303/1.303, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.1976/0.1976, allocations: 44.18 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3155, allocations: 60.82 MB / 0.5195 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001501/0.317, allocations: 487.1 kB / 0.52 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.3195, allocations: 1.999 MB / 0.522 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.354e-05/0.3196, allocations: 1 kB / 0.522 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.3196, allocations: 3.938 kB / 0.522 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.556e-05/0.3197, allocations: 4 kB / 0.522 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.3208, allocations: 381.2 kB / 0.5223 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.755e-05/0.3209, allocations: 4.078 kB / 0.5223 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.3209, allocations: 0.9375 kB / 0.5223 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.799e-05/0.321, allocations: 5.828 kB / 0.5223 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01441/0.3354, allocations: 3.36 MB / 0.5256 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.3354, allocations: 0 / 0.5256 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.3356, allocations: 5.484 kB / 0.5256 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.3356, allocations: 1.375 kB / 0.5256 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.367e-05/0.3356, allocations: 0 / 0.5256 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.3358, allocations: 19.39 kB / 0.5256 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3358, allocations: 0 / 0.5256 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3358, allocations: 3.938 kB / 0.5256 GB, free: 1.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3358, allocations: 0 / 0.5256 GB, free: 1.113 MB / 382.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.0002573/0.3361, allocations: 319.5 kB / 0.526 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3361, allocations: 10.28 kB / 0.526 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.3363, allocations: 87.92 kB / 0.526 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.847e-05/0.3364, allocations: 242.3 kB / 0.5263 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.3364, allocations: 150.9 kB / 0.5264 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.3364, allocations: 159.2 kB / 0.5266 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.363e-05/0.3365, allocations: 102.4 kB / 0.5267 GB, free: 0 / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.481e-05/0.3365, allocations: 75.98 kB / 0.5267 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-05/0.3366, allocations: 151.9 kB / 0.5269 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.747e-05/0.3367, allocations: 150.6 kB / 0.527 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.706e-05/0.3367, allocations: 151.9 kB / 0.5272 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002737/0.337, allocations: 452 kB / 0.5276 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.312e-05/0.3371, allocations: 166.5 kB / 0.5278 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.635e-05/0.3371, allocations: 90.2 kB / 0.5279 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.3372, allocations: 75.28 kB / 0.5279 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.703e-05/0.3372, allocations: 115.9 kB / 0.528 GB, free: 14.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.243e-06/0.3372, allocations: 0 / 0.528 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.374e-05/0.3373, allocations: 31.62 kB / 0.5281 GB, free: 14.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.007e-05/0.3374, allocations: 180.3 kB / 0.5282 GB, free: 14.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.3375, allocations: 91.98 kB / 0.5283 GB, free: 14.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.3375, allocations: 25.7 kB / 0.5283 GB, free: 14.17 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.3376, allocations: 81.52 kB / 0.5284 GB, free: 14.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-06/0.3376, allocations: 4.125 kB / 0.5284 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.3376, allocations: 17.03 kB / 0.5284 GB, free: 14.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3377, allocations: 311.4 kB / 0.5287 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-06/0.3377, allocations: 0 / 0.5287 GB, free: 13.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.568e-05/0.3378, allocations: 12.98 kB / 0.5288 GB, free: 13.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.764e-05/0.3378, allocations: 76.12 kB / 0.5288 GB, free: 13.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.373e-05/0.3378, allocations: 80.59 kB / 0.5289 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.602e-05/0.3379, allocations: 37.16 kB / 0.5289 GB, free: 13.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/0.3379, allocations: 86.53 kB / 0.529 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.342e-05/0.338, allocations: 77.22 kB / 0.5291 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.683e-05/0.338, allocations: 156.5 kB / 0.5292 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.484e-05/0.3381, allocations: 83.88 kB / 0.5293 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.141e-05/0.3381, allocations: 152.5 kB / 0.5295 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.096e-05/0.3382, allocations: 81.11 kB / 0.5295 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.3383, allocations: 81.22 kB / 0.5296 GB, free: 12.86 MB / 398.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.0001156/0.3384, allocations: 259.7 kB / 0.5299 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.745e-05/0.3384, allocations: 110.8 kB / 0.53 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.3385, allocations: 109.2 kB / 0.5301 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.215e-05/0.3386, allocations: 182.2 kB / 0.5303 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.349e-05/0.3386, allocations: 186.1 kB / 0.5304 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.14e-05/0.3387, allocations: 178.9 kB / 0.5306 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.339, allocations: 408.5 kB / 0.531 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.813e-05/0.339, allocations: 103.2 kB / 0.5311 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.256e-05/0.339, allocations: 101.8 kB / 0.5312 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.197e-05/0.3391, allocations: 186.3 kB / 0.5314 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.925e-05/0.3392, allocations: 178.3 kB / 0.5315 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.169e-05/0.3393, allocations: 180.8 kB / 0.5317 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.29e-05/0.3393, allocations: 186.4 kB / 0.5319 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.3395, allocations: 309.9 kB / 0.5322 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.735e-05/0.3396, allocations: 184.3 kB / 0.5324 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.3396, allocations: 183.3 kB / 0.5325 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.3397, allocations: 107.2 kB / 0.5326 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.3398, allocations: 178.2 kB / 0.5328 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/0.3398, allocations: 107.2 kB / 0.5329 GB, free: 9.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.234e-05/0.3399, allocations: 79.28 kB / 0.533 GB, free: 9.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3399, allocations: 1.375 kB / 0.533 GB, free: 9.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00024/0.3401, allocations: 1.375 kB / 0.533 GB, free: 9.23 MB / 398.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.643e-05/0.3402, allocations: 168 kB / 0.5331 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 4.827e-05/0.3403, allocations: 5.391 kB / 0.5332 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3403, allocations: 0 / 0.5332 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.224e-06/0.3403, allocations: 2.031 kB / 0.5332 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3406, allocations: 471 kB / 0.5336 GB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001788/0.3408, allocations: 174.8 kB / 0.5338 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.341, allocations: 0.6754 MB / 0.5344 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.212e-05/0.341, allocations: 7.438 kB / 0.5344 GB, free: 7.695 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.341, allocations: 0 / 0.5344 GB, free: 7.695 MB / 398.1 MB Notification: Performance of Templates: time 0.001726/0.3428, allocations: 376 kB / 0.5348 GB, free: 7.641 MB / 398.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