Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00353/0.00353, allocations: 186.1 kB / 8.149 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.2 MB / 213.7 MB, free: 8.578 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001678/0.001677, allocations: 91.81 kB / 261.8 MB, free: 5.152 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2598/0.2598, allocations: 43.48 MB / 353.2 MB, free: 11.43 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 8.285e-06/8.516e-06, allocations: 0 / 417.7 MB, free: 68.6 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1457, allocations: 58.85 MB / 476.5 MB, free: 9.684 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4915, allocations: 86.48 MB / 0.5498 GB, free: 10.33 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.4918, allocations: 63.59 kB / 0.5499 GB, free: 10.3 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.01971/0.5115, allocations: 3.938 MB / 0.5537 GB, free: 7.059 MB / 370.8 MB Notification: Performance of Transformations before backend: time 3.106e-05/0.5116, allocations: 8 kB / 0.5537 GB, free: 7.051 MB / 370.8 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.001294/0.5129, allocations: 0.5266 MB / 0.5543 GB, free: 6.496 MB / 370.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.5129, allocations: 12.03 kB / 0.5543 GB, free: 6.484 MB / 370.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.5131, allocations: 43.28 kB / 0.5543 GB, free: 6.445 MB / 370.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/0.5138, allocations: 321.3 kB / 0.5546 GB, free: 6.129 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.5138, allocations: 11.98 kB / 0.5546 GB, free: 6.117 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-05/0.5139, allocations: 20 kB / 0.5546 GB, free: 6.098 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004864/0.5144, allocations: 144.7 kB / 0.5548 GB, free: 6.012 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.515, allocations: 205 kB / 0.555 GB, free: 5.852 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.5151, allocations: 7.906 kB / 0.555 GB, free: 5.844 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.429e-05/0.5151, allocations: 3.984 kB / 0.555 GB, free: 5.84 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.5152, allocations: 8 kB / 0.555 GB, free: 5.832 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.517, allocations: 0.6992 MB / 0.5557 GB, free: 5.238 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004265/0.5174, allocations: 172.8 kB / 0.5558 GB, free: 5.109 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.5177, allocations: 74.84 kB / 0.5559 GB, free: 5.059 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/0.5177, allocations: 4 kB / 0.5559 GB, free: 5.055 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004541/0.5182, allocations: 168.3 kB / 0.5561 GB, free: 4.918 MB / 370.8 MB Notification: Performance of pre-optimization done (n=31): time 3.417e-06/0.5182, allocations: 0 / 0.5561 GB, free: 4.918 MB / 370.8 MB Notification: Performance of matching and sorting (n=31): time 0.0006945/0.5189, allocations: 230.3 kB / 0.5563 GB, free: 4.734 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.519, allocations: 61.95 kB / 0.5564 GB, free: 4.664 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.5193, allocations: 194.9 kB / 0.5565 GB, free: 4.496 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 4.592e-05/0.5194, allocations: 29.02 kB / 0.5566 GB, free: 4.465 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.5195, allocations: 199.9 kB / 0.5568 GB, free: 4.273 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.5196, allocations: 92.47 kB / 0.5568 GB, free: 4.195 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.5197, allocations: 0.75 kB / 0.5568 GB, free: 4.195 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5198, allocations: 324.8 kB / 0.5572 GB, free: 3.875 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.52, allocations: 66.38 kB / 0.5572 GB, free: 3.832 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003399/0.5204, allocations: 205.5 kB / 0.5574 GB, free: 3.609 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.5207, allocations: 108.4 kB / 0.5575 GB, free: 3.531 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.5207, allocations: 0 / 0.5575 GB, free: 3.531 MB / 370.8 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007551/0.5215, allocations: 277.3 kB / 0.5578 GB, free: 3.309 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.5215, allocations: 12.41 kB / 0.5578 GB, free: 3.297 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5215, allocations: 8 kB / 0.5578 GB, free: 3.289 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.907e-05/0.5216, allocations: 8 kB / 0.5578 GB, free: 3.281 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008896/0.5225, allocations: 74.45 kB / 0.5579 GB, free: 3.211 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.623e-05/0.5225, allocations: 15.84 kB / 0.5579 GB, free: 3.195 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.5229, allocations: 23.78 kB / 0.5579 GB, free: 3.172 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.523, allocations: 27.86 kB / 0.5579 GB, free: 3.148 MB / 370.8 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.0001338/0.5231, allocations: 46.75 kB / 0.558 GB, free: 3.102 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.312e-05/0.5232, allocations: 27.72 kB / 0.558 GB, free: 3.074 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008252/0.5241, allocations: 258.9 kB / 0.5583 GB, free: 2.871 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.5241, allocations: 4 kB / 0.5583 GB, free: 2.867 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5241, allocations: 144 / 0.5583 GB, free: 2.867 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.5241, allocations: 11.88 kB / 0.5583 GB, free: 2.855 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.5253, allocations: 0.5956 MB / 0.5589 GB, free: 2.324 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5253, allocations: 0 / 0.5589 GB, free: 2.324 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005694/0.5259, allocations: 63.28 kB / 0.5589 GB, free: 2.266 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/0.5259, allocations: 7.906 kB / 0.5589 GB, free: 2.258 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.526, allocations: 11.73 kB / 0.5589 GB, free: 2.25 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.526, allocations: 0 / 0.5589 GB, free: 2.25 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.526, allocations: 3.984 kB / 0.5589 GB, free: 2.246 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000992/0.527, allocations: 454 kB / 0.5594 GB, free: 1.891 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.5271, allocations: 104.7 kB / 0.5595 GB, free: 1.77 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.749e-05/0.5272, allocations: 7.562 kB / 0.5595 GB, free: 1.766 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.5276, allocations: 11.98 kB / 0.5595 GB, free: 1.754 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.383e-05/0.5277, allocations: 19.69 kB / 0.5595 GB, free: 1.738 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.162e-05/0.5277, allocations: 11.98 kB / 0.5595 GB, free: 1.727 MB / 370.8 MB Notification: Performance of sort global known variables: time 0.0002353/0.528, allocations: 156.4 kB / 0.5597 GB, free: 1.602 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.0005303/0.5285, allocations: 63.78 kB / 0.5597 GB, free: 1.539 MB / 370.8 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.0002226/0.5288, allocations: 115.6 kB / 0.5598 GB, free: 1.422 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.0006499/0.5294, allocations: 212.1 kB / 0.56 GB, free: 1.27 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.5294, allocations: 192 / 0.5601 GB, free: 1.27 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.5298, allocations: 111.3 kB / 0.5602 GB, free: 1.191 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.5302, allocations: 28.27 kB / 0.5602 GB, free: 1.172 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.5317, allocations: 473 kB / 0.5606 GB, free: 0.7305 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/0.5324, allocations: 0.8206 MB / 0.5614 GB, free: 15.89 MB / 386.8 MB Notification: Performance of SimCode: time 1.563e-06/0.5324, allocations: 0 / 0.5614 GB, free: 15.89 MB / 386.8 MB Notification: Performance of Templates: time 0.01292/0.5453, allocations: 3.45 MB / 0.5648 GB, free: 12.48 MB / 386.8 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches