Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000893/0.000893, allocations: 187.6 kB / 7.804 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.016/1.016, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007789/0.000779, allocations: 83.33 kB / 261.4 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1638/0.1638, allocations: 43.49 MB / 352.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.63e-06/6.071e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2496, allocations: 58.84 MB / 476.5 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.3594, allocations: 86.48 MB / 0.5498 GB, free: 12.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001826/0.3597, allocations: 63.97 kB / 0.5499 GB, free: 12.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01167/0.3713, allocations: 3.947 MB / 0.5537 GB, free: 8.426 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.3714, allocations: 8 kB / 0.5538 GB, free: 8.418 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007561/0.3721, allocations: 0.5282 MB / 0.5543 GB, free: 7.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.3722, allocations: 8.031 kB / 0.5543 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.26e-05/0.3723, allocations: 39.53 kB / 0.5543 GB, free: 7.793 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.3727, allocations: 317.8 kB / 0.5546 GB, free: 7.445 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.3727, allocations: 8 kB / 0.5546 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.3728, allocations: 24 kB / 0.5547 GB, free: 7.414 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002726/0.373, allocations: 148.9 kB / 0.5548 GB, free: 7.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.3734, allocations: 203.1 kB / 0.555 GB, free: 7.062 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.3734, allocations: 7.906 kB / 0.555 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.712e-05/0.3734, allocations: 0 / 0.555 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3734, allocations: 4 kB / 0.555 GB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.3745, allocations: 0.7084 MB / 0.5557 GB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.3747, allocations: 163 kB / 0.5558 GB, free: 6.137 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.3749, allocations: 87.62 kB / 0.5559 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.3749, allocations: 7.984 kB / 0.5559 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.3752, allocations: 163.2 kB / 0.5561 GB, free: 5.871 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3752, allocations: 0 / 0.5561 GB, free: 5.871 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004247/0.3756, allocations: 229.2 kB / 0.5563 GB, free: 5.641 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.3756, allocations: 59.41 kB / 0.5564 GB, free: 5.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.3758, allocations: 192.3 kB / 0.5566 GB, free: 5.375 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.3758, allocations: 29.7 kB / 0.5566 GB, free: 5.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.799e-05/0.3759, allocations: 148.5 kB / 0.5567 GB, free: 5.191 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.376, allocations: 90.66 kB / 0.5568 GB, free: 5.102 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.376, allocations: 4 kB / 0.5568 GB, free: 5.098 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3761, allocations: 338.8 kB / 0.5571 GB, free: 4.758 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.3763, allocations: 68.75 kB / 0.5572 GB, free: 4.688 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.3764, allocations: 208 kB / 0.5574 GB, free: 4.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.3766, allocations: 99.77 kB / 0.5575 GB, free: 4.332 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3766, allocations: 4 kB / 0.5575 GB, free: 4.328 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004124/0.377, allocations: 300.9 kB / 0.5578 GB, free: 4.027 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.377, allocations: 4 kB / 0.5578 GB, free: 4.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.3771, allocations: 4 kB / 0.5578 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3771, allocations: 8.469 kB / 0.5578 GB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.3774, allocations: 83.89 kB / 0.5579 GB, free: 3.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3774, allocations: 7.938 kB / 0.5579 GB, free: 3.922 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.3776, allocations: 35.67 kB / 0.5579 GB, free: 3.887 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.3776, allocations: 16 kB / 0.5579 GB, free: 3.871 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001017/0.3777, allocations: 138 kB / 0.5581 GB, free: 3.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/0.3778, allocations: 23.72 kB / 0.5581 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004358/0.3782, allocations: 252.4 kB / 0.5583 GB, free: 3.449 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3783, allocations: 11.91 kB / 0.5583 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3783, allocations: 0 / 0.5583 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.3783, allocations: 0 / 0.5583 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.3789, allocations: 0.6044 MB / 0.5589 GB, free: 2.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3789, allocations: 3.938 kB / 0.5589 GB, free: 2.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.3792, allocations: 55.91 kB / 0.559 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3792, allocations: 4 kB / 0.559 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.3792, allocations: 11.89 kB / 0.559 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3792, allocations: 0 / 0.559 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3792, allocations: 0 / 0.559 GB, free: 2.715 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005613/0.3798, allocations: 455 kB / 0.5594 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.3799, allocations: 108.8 kB / 0.5595 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.3799, allocations: 7.906 kB / 0.5596 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.3801, allocations: 15.98 kB / 0.5596 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.3802, allocations: 20.25 kB / 0.5596 GB, free: 2.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.3802, allocations: 15.98 kB / 0.5596 GB, free: 2.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001184/0.3804, allocations: 152.5 kB / 0.5597 GB, free: 1.922 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000324/0.3807, allocations: 59.78 kB / 0.5598 GB, free: 1.863 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001487/0.3809, allocations: 111.2 kB / 0.5599 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003229/0.3812, allocations: 215.7 kB / 0.5601 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3812, allocations: 0 / 0.5601 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001608/0.3814, allocations: 112.4 kB / 0.5602 GB, free: 1.426 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.3816, allocations: 20.33 kB / 0.5602 GB, free: 1.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008145/0.3824, allocations: 432.3 kB / 0.5607 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004017/0.3828, allocations: 0.8284 MB / 0.5615 GB, free: 108 kB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3828, allocations: 0 / 0.5615 GB, free: 108 kB / 394.7 MB Notification: Performance of Templates: time 0.005566/0.3884, allocations: 2.602 MB / 0.564 GB, free: 13.51 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches