Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009281/0.0009282, allocations: 179.5 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.4 MB / 230.3 MB, free: 7.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009676/0.0009677, allocations: 89.72 kB / 281.2 MB, free: 5.441 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1947/0.1947, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.072e-06/6.192e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1236, allocations: 61.9 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2824/0.406, allocations: 87.51 MB / 0.5795 GB, free: 9.242 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.4063, allocations: 59.05 kB / 0.5796 GB, free: 9.215 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01262/0.4189, allocations: 4.095 MB / 0.5836 GB, free: 5.152 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.419, allocations: 12 kB / 0.5836 GB, free: 5.141 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008389/0.4198, allocations: 0.5444 MB / 0.5841 GB, free: 4.547 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.4199, allocations: 11.97 kB / 0.5841 GB, free: 4.535 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.707e-05/0.4199, allocations: 35.62 kB / 0.5842 GB, free: 4.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.4204, allocations: 322 kB / 0.5845 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.4204, allocations: 8 kB / 0.5845 GB, free: 4.137 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.4205, allocations: 24 kB / 0.5845 GB, free: 4.113 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002896/0.4208, allocations: 153.2 kB / 0.5847 GB, free: 3.965 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.4211, allocations: 220.8 kB / 0.5849 GB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4211, allocations: 0 / 0.5849 GB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/0.4212, allocations: 0 / 0.5849 GB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.4212, allocations: 8 kB / 0.5849 GB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.4223, allocations: 0.7325 MB / 0.5856 GB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.4226, allocations: 173.1 kB / 0.5858 GB, free: 2.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.4227, allocations: 80.84 kB / 0.5858 GB, free: 2.695 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.4227, allocations: 4 kB / 0.5858 GB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.423, allocations: 167.2 kB / 0.586 GB, free: 2.516 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.863e-06/0.423, allocations: 0 / 0.586 GB, free: 2.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004167/0.4234, allocations: 217.3 kB / 0.5862 GB, free: 2.297 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.735e-05/0.4235, allocations: 63.41 kB / 0.5863 GB, free: 2.223 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.4236, allocations: 200.1 kB / 0.5865 GB, free: 2.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.4237, allocations: 25.7 kB / 0.5865 GB, free: 1.988 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.4238, allocations: 144.6 kB / 0.5866 GB, free: 1.844 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.588e-05/0.4238, allocations: 99.48 kB / 0.5867 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.4239, allocations: 4 kB / 0.5867 GB, free: 1.742 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.424, allocations: 338.8 kB / 0.587 GB, free: 1.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.4241, allocations: 72.69 kB / 0.5871 GB, free: 1.328 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.4243, allocations: 198.2 kB / 0.5873 GB, free: 1.074 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.4245, allocations: 99.83 kB / 0.5874 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4245, allocations: 0 / 0.5874 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004398/0.4249, allocations: 296.9 kB / 0.5877 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.425, allocations: 4 kB / 0.5877 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.425, allocations: 11.94 kB / 0.5877 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.425, allocations: 8 kB / 0.5877 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/0.4253, allocations: 84.36 kB / 0.5878 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.4254, allocations: 11.92 kB / 0.5878 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.4256, allocations: 27.75 kB / 0.5878 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.4256, allocations: 16 kB / 0.5878 GB, free: 0.5195 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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * 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.0001104/0.4257, allocations: 124.8 kB / 0.588 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.4258, allocations: 31.62 kB / 0.588 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004748/0.4262, allocations: 260.1 kB / 0.5882 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.4262, allocations: 4 kB / 0.5882 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4263, allocations: 0 / 0.5882 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.4263, allocations: 4 kB / 0.5882 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007059/0.427, allocations: 0.6121 MB / 0.5888 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.427, allocations: 0 / 0.5888 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.4273, allocations: 51.91 kB / 0.5889 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.4273, allocations: 4 kB / 0.5889 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.4274, allocations: 7.984 kB / 0.5889 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.4274, allocations: 0 / 0.5889 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4274, allocations: 4 kB / 0.5889 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000588/0.428, allocations: 458.9 kB / 0.5893 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.612e-05/0.4281, allocations: 100.8 kB / 0.5894 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.4281, allocations: 4 kB / 0.5894 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001832/0.4283, allocations: 11.98 kB / 0.5895 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.505e-05/0.4284, allocations: 28.16 kB / 0.5895 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.4284, allocations: 11.98 kB / 0.5895 GB, free: 14.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001222/0.4285, allocations: 156.5 kB / 0.5896 GB, free: 14.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00034/0.4289, allocations: 63.78 kB / 0.5897 GB, free: 14.52 MB / 410.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.0001408/0.429, allocations: 107.8 kB / 0.5898 GB, free: 14.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003598/0.4294, allocations: 216.5 kB / 0.59 GB, free: 14.19 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4294, allocations: 4.281 kB / 0.59 GB, free: 14.19 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.4296, allocations: 104.5 kB / 0.5901 GB, free: 14.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.4299, allocations: 28.53 kB / 0.5901 GB, free: 14.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008527/0.4307, allocations: 444.9 kB / 0.5906 GB, free: 13.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004195/0.4312, allocations: 0.8288 MB / 0.5914 GB, free: 12.75 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4312, allocations: 0 / 0.5914 GB, free: 12.75 MB / 410.7 MB Notification: Performance of Templates: time 0.00548/0.4366, allocations: 2.606 MB / 0.5939 GB, free: 10.16 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches