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.001903/0.001903, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.001994/0.001994, allocations: 165.3 kB / 24.27 MB, free: 148 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 1.585/1.585, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.3769/0.3769, allocations: 34.26 MB / 295.3 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 179] 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.253e-06/1.253e-06, allocations: 0 / 377.3 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.435e-05/2.56e-05, allocations: 9.547 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004072/0.004098, allocations: 2.231 MB / 379.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.006032, allocations: 0.8722 MB / 380.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.006273, allocations: 11.88 kB / 380.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.006453, allocations: 35.53 kB / 380.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003224/0.006776, allocations: 71.33 kB / 380.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005542/0.00733, allocations: 187.5 kB / 380.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005798/0.007909, allocations: 398.8 kB / 381.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.008181, allocations: 80.84 kB / 381.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005294/0.00871, allocations: 231.4 kB / 381.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.008983, allocations: 119.6 kB / 381.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.009086, allocations: 40 kB / 381.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.009228, allocations: 51.92 kB / 381.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.00935, allocations: 91.61 kB / 381.7 MB, free: 14.57 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.00953, allocations: 115.7 kB / 381.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007091/0.01024, allocations: 430.6 kB / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.01024, allocations: 0 / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01024, allocations: 0 / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.01026, allocations: 0 / 382.2 MB, free: 14.04 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.001928/0.01219, allocations: 0.9261 MB / 383.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.01223, allocations: 8.031 kB / 383.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005333/0.01276, allocations: 104.5 kB / 383.2 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.01352, allocations: 305.1 kB / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/0.01356, allocations: 25.03 kB / 383.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.72e-05/0.01365, allocations: 36.33 kB / 383.6 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006733/0.01432, allocations: 246.6 kB / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.01436, allocations: 4.188 kB / 383.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.584e-05/0.01441, allocations: 16.12 kB / 383.9 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.01442, allocations: 4 kB / 383.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004963/0.01491, allocations: 158.5 kB / 384 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/0.01709, allocations: 0.8001 MB / 384.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005826/0.01768, allocations: 191.3 kB / 385 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.01791, allocations: 79.66 kB / 385.1 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.906e-05/0.01797, allocations: 15.92 kB / 385.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005107/0.01848, allocations: 224.8 kB / 385.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 3.307e-06/0.01849, allocations: 0 / 385.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001021/0.01951, allocations: 358.1 kB / 385.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.01959, allocations: 63.33 kB / 385.7 MB, free: 10.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005267/0.02012, allocations: 374.3 kB / 386.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.606e-05/0.02017, allocations: 37.7 kB / 386.1 MB, free: 9.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/0.02043, allocations: 247.4 kB / 386.4 MB, free: 9.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.02057, allocations: 103.2 kB / 386.5 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.02077, allocations: 91.7 kB / 386.6 MB, free: 9.457 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003951/0.02116, allocations: 0.5313 MB / 387.1 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.02143, allocations: 80.7 kB / 387.2 MB, free: 8.836 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.02189, allocations: 275.2 kB / 387.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008109/0.0227, allocations: 393.4 kB / 387.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.17e-05/0.02272, allocations: 0 / 387.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00101/0.02373, allocations: 377.3 kB / 388.2 MB, free: 7.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.02376, allocations: 8 kB / 388.2 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.043e-05/0.02378, allocations: 7.984 kB / 388.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.847e-05/0.02382, allocations: 7.938 kB / 388.2 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003595/0.02418, allocations: 71.91 kB / 388.3 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.75e-05/0.02421, allocations: 15.92 kB / 388.3 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/0.02447, allocations: 35.78 kB / 388.3 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.02451, allocations: 16 kB / 388.4 MB, free: 7.48 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.0003454/0.02485, allocations: 212.4 kB / 388.6 MB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.02496, allocations: 39.81 kB / 388.6 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007972/0.02576, allocations: 300.4 kB / 388.9 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.02577, allocations: 8.078 kB / 388.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.02578, allocations: 0 / 388.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.02579, allocations: 7.969 kB / 388.9 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.02739, allocations: 0.6847 MB / 389.6 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.0274, allocations: 11.94 kB / 389.6 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.02766, allocations: 43.97 kB / 389.6 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.02767, allocations: 3.938 kB / 389.7 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.02771, allocations: 11.98 kB / 389.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.02771, allocations: 0 / 389.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.02771, allocations: 0 / 389.7 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.02881, allocations: 0.5624 MB / 390.2 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.804e-05/0.02889, allocations: 27.75 kB / 390.3 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/0.02896, allocations: 23.92 kB / 390.3 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.02913, allocations: 11.94 kB / 390.3 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.02924, allocations: 23.95 kB / 390.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.02927, allocations: 11.98 kB / 390.3 MB, free: 5.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003225/0.02959, allocations: 247 kB / 390.6 MB, free: 5.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02959, allocations: 0 / 390.6 MB, free: 5.191 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004928/0.03008, allocations: 75.84 kB / 390.6 MB, free: 5.117 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 0.0002268/0.03031, allocations: 115.2 kB / 390.8 MB, free: 4.996 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009117/0.03122, allocations: 259.3 kB / 391 MB, free: 4.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/0.03123, allocations: 4 kB / 391 MB, free: 4.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003142/0.03155, allocations: 127.5 kB / 391.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.03207, allocations: 41.91 kB / 391.2 MB, free: 4.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.03378, allocations: 0.624 MB / 391.8 MB, free: 3.906 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.03406, allocations: 186 kB / 392 MB, free: 3.707 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.03425, allocations: 39.23 kB / 392 MB, free: 3.664 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.03436, allocations: 36.48 kB / 392.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.03436, allocations: 0 / 392.1 MB, free: 3.629 MB / 362.7 MB Notification: Performance of Templates: time 0.009859/0.04422, allocations: 2.778 MB / 394.8 MB, free: 0.8867 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.263294875039719]