Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001015/0.001015, allocations: 207.5 kB / 8.537 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000897/0.0008971, allocations: 91.84 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 45.15 MB / 383.3 MB, free: 488 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.446e-06, allocations: 0 / 452.6 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 63.24 MB / 0.5038 GB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/0.4456, allocations: 88.59 MB / 0.5903 GB, free: 14.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001614/0.4458, allocations: 62.84 kB / 0.5903 GB, free: 14.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01291/0.4587, allocations: 4.316 MB / 0.5946 GB, free: 10.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.247e-05/0.4588, allocations: 8 kB / 0.5946 GB, free: 10.68 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.0008805/0.4597, allocations: 0.5653 MB / 0.5951 GB, free: 10.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.4597, allocations: 8.031 kB / 0.5951 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004806/0.4602, allocations: 91.47 kB / 0.5952 GB, free: 9.996 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004816/0.4607, allocations: 323 kB / 0.5955 GB, free: 9.676 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/0.4608, allocations: 11.94 kB / 0.5955 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.4608, allocations: 27.91 kB / 0.5956 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003295/0.4612, allocations: 148.7 kB / 0.5957 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.4616, allocations: 216.7 kB / 0.5959 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.4616, allocations: 3.984 kB / 0.5959 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.4616, allocations: 2.75 kB / 0.5959 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.4617, allocations: 8 kB / 0.5959 GB, free: 9.375 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.4629, allocations: 0.7448 MB / 0.5966 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/0.4631, allocations: 168.3 kB / 0.5968 GB, free: 8.609 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.4633, allocations: 85.09 kB / 0.5969 GB, free: 8.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.4633, allocations: 7.25 kB / 0.5969 GB, free: 8.547 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002741/0.4636, allocations: 171.8 kB / 0.5971 GB, free: 8.406 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 1.733e-06/0.4636, allocations: 0 / 0.5971 GB, free: 8.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.00042/0.464, allocations: 234.6 kB / 0.5973 GB, free: 8.219 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.4641, allocations: 59.39 kB / 0.5973 GB, free: 8.148 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.4643, allocations: 215.4 kB / 0.5975 GB, free: 7.969 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.4643, allocations: 25.7 kB / 0.5976 GB, free: 7.938 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.8e-05/0.4644, allocations: 155.2 kB / 0.5977 GB, free: 7.797 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.294e-05/0.4645, allocations: 96.72 kB / 0.5978 GB, free: 7.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.4645, allocations: 0 / 0.5978 GB, free: 7.715 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.4646, allocations: 345.5 kB / 0.5981 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.4647, allocations: 65.12 kB / 0.5982 GB, free: 7.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.465, allocations: 205.1 kB / 0.5984 GB, free: 7.117 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.4652, allocations: 95.95 kB / 0.5985 GB, free: 7.051 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4652, allocations: 0 / 0.5985 GB, free: 7.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00046/0.4656, allocations: 304 kB / 0.5988 GB, free: 6.805 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.4657, allocations: 4 kB / 0.5988 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.4657, allocations: 4 kB / 0.5988 GB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.4657, allocations: 8 kB / 0.5988 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003346/0.466, allocations: 87.98 kB / 0.5989 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.4661, allocations: 7.984 kB / 0.5989 GB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.4663, allocations: 27.75 kB / 0.5989 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.4663, allocations: 19.69 kB / 0.5989 GB, free: 6.656 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 9.965e-05/0.4664, allocations: 132.5 kB / 0.5991 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.132e-05/0.4664, allocations: 27.62 kB / 0.5991 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.4669, allocations: 261.8 kB / 0.5993 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.4669, allocations: 3.906 kB / 0.5993 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4669, allocations: 4 kB / 0.5993 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4669, allocations: 4 kB / 0.5993 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006653/0.4676, allocations: 0.6093 MB / 0.5999 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.4676, allocations: 0 / 0.5999 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.4679, allocations: 55.44 kB / 0.6 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.4679, allocations: 7.938 kB / 0.6 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.468, allocations: 11.89 kB / 0.6 GB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.468, allocations: 4 kB / 0.6 GB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.468, allocations: 0 / 0.6 GB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005513/0.4685, allocations: 449.7 kB / 0.6004 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.088e-05/0.4686, allocations: 108.7 kB / 0.6005 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.4687, allocations: 7.875 kB / 0.6006 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.4689, allocations: 15.98 kB / 0.6006 GB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.469, allocations: 27.22 kB / 0.6006 GB, free: 5.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.469, allocations: 15.67 kB / 0.6006 GB, free: 5.145 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001439/0.4691, allocations: 164.4 kB / 0.6008 GB, free: 5.012 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000356/0.4695, allocations: 75.64 kB / 0.6008 GB, free: 4.941 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_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.000145/0.4696, allocations: 108.2 kB / 0.6009 GB, free: 4.824 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003392/0.47, allocations: 220.4 kB / 0.6012 GB, free: 4.668 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.47, allocations: 0 / 0.6012 GB, free: 4.668 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.4702, allocations: 113.5 kB / 0.6013 GB, free: 4.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.4704, allocations: 27.22 kB / 0.6013 GB, free: 4.566 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008617/0.4713, allocations: 467 kB / 0.6017 GB, free: 4.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004473/0.4718, allocations: 0.832 MB / 0.6025 GB, free: 3.285 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4718, allocations: 0 / 0.6025 GB, free: 3.285 MB / 394.7 MB Notification: Performance of Templates: time 0.005693/0.4775, allocations: 2.739 MB / 0.6052 GB, free: 0.5703 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches