Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9347/0.9347, allocations: 177.1 MB / 205 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.25/0.25, allocations: 34.25 MB / 295.7 MB, free: 0.7266 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 378 MB, free: 2.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.433e-05/1.535e-05, allocations: 5.969 kB / 378 MB, free: 2.676 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002306/0.002322, allocations: 2.277 MB / 380.3 MB, free: 388 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.003462, allocations: 0.8723 MB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.003581, allocations: 11.94 kB / 381.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.0037, allocations: 35.53 kB / 381.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.003891, allocations: 71.31 kB / 381.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.00421, allocations: 191.5 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003045/0.004515, allocations: 398.8 kB / 381.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.00468, allocations: 84.84 kB / 382 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.004933, allocations: 223.4 kB / 382.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/0.005094, allocations: 123.6 kB / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.005135, allocations: 36 kB / 382.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.556e-05/0.005211, allocations: 51.94 kB / 382.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.314e-05/0.005274, allocations: 91.59 kB / 382.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.55e-05/0.00537, allocations: 111.7 kB / 382.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.005643, allocations: 282.9 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.005645, allocations: 4 kB / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.005646, allocations: 0 / 382.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.00565, allocations: 0 / 382.9 MB, free: 13.82 MB / 362.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.0008405/0.006491, allocations: 0.8365 MB / 383.7 MB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.006524, allocations: 8.031 kB / 383.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002833/0.006807, allocations: 104.6 kB / 383.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/0.007344, allocations: 288.5 kB / 384.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.007368, allocations: 21.03 kB / 384.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.007413, allocations: 44.27 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.007703, allocations: 207.3 kB / 384.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.007716, allocations: 192 / 384.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.007739, allocations: 20.11 kB / 384.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.007748, allocations: 8 kB / 384.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.007899, allocations: 87.86 kB / 384.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008257/0.008724, allocations: 0.7182 MB / 385.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.00895, allocations: 151.3 kB / 385.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.664e-05/0.009027, allocations: 51.66 kB / 385.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.00905, allocations: 7.984 kB / 385.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002092/0.009259, allocations: 176.8 kB / 385.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.873e-06/0.009261, allocations: 0 / 385.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003978/0.009659, allocations: 278 kB / 385.8 MB, free: 10.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.009695, allocations: 63.39 kB / 385.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.009874, allocations: 302.3 kB / 386.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.009897, allocations: 33.7 kB / 386.2 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.483e-05/0.009992, allocations: 239.3 kB / 386.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.695e-05/0.01005, allocations: 91.19 kB / 386.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.669e-05/0.01013, allocations: 83.7 kB / 386.6 MB, free: 9.824 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.01025, allocations: 0.5079 MB / 387.1 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.01032, allocations: 44.72 kB / 387.2 MB, free: 9.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.01047, allocations: 231.2 kB / 387.4 MB, free: 8.953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.01072, allocations: 317.4 kB / 387.7 MB, free: 8.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.01072, allocations: 0 / 387.7 MB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003339/0.01106, allocations: 309.3 kB / 388 MB, free: 8.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.01107, allocations: 8.719 kB / 388 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.01108, allocations: 7.984 kB / 388 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.0111, allocations: 11.94 kB / 388.1 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.01129, allocations: 83.83 kB / 388.1 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.0113, allocations: 8 kB / 388.1 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.749e-05/0.01139, allocations: 27.78 kB / 388.2 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.01141, allocations: 27.92 kB / 388.2 MB, free: 8.078 MB / 362.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,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.01153, allocations: 180.5 kB / 388.4 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.01157, allocations: 47.81 kB / 388.4 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.01188, allocations: 240.4 kB / 388.7 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.01188, allocations: 11.92 kB / 388.7 MB, free: 7.594 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.01189, allocations: 4 kB / 388.7 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01189, allocations: 0 / 388.7 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.01235, allocations: 0.5677 MB / 389.2 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01236, allocations: 0 / 389.2 MB, free: 6.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.01249, allocations: 47.91 kB / 389.3 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.01249, allocations: 11.94 kB / 389.3 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.01251, allocations: 8 kB / 389.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.01251, allocations: 0 / 389.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01251, allocations: 0 / 389.3 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004028/0.01292, allocations: 443.6 kB / 389.7 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.837e-05/0.01295, allocations: 35.73 kB / 389.8 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.01298, allocations: 11.94 kB / 389.8 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.921e-05/0.01306, allocations: 15.98 kB / 389.8 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.01311, allocations: 23.95 kB / 389.8 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.01313, allocations: 8 kB / 389.8 MB, free: 6.367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.01325, allocations: 219 kB / 390 MB, free: 6.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01325, allocations: 0 / 390 MB, free: 6.152 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.01349, allocations: 71.83 kB / 390.1 MB, free: 6.082 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * 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 (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.273e-05/0.01359, allocations: 111.2 kB / 390.2 MB, free: 5.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.01386, allocations: 180.1 kB / 390.4 MB, free: 5.785 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01386, allocations: 4.062 kB / 390.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.01397, allocations: 91.8 kB / 390.5 MB, free: 5.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.01423, allocations: 48.94 kB / 390.5 MB, free: 5.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.01535, allocations: 0.5887 MB / 391.1 MB, free: 5.016 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.1e-05/0.01541, allocations: 109.5 kB / 391.2 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.815e-05/0.0155, allocations: 38.95 kB / 391.3 MB, free: 4.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.524e-05/0.01557, allocations: 32.48 kB / 391.3 MB, free: 4.816 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01557, allocations: 4 kB / 391.3 MB, free: 4.812 MB / 362.7 MB Notification: Performance of Templates: time 0.004779/0.02035, allocations: 2.892 MB / 394.2 MB, free: 1.961 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.148482486139983]