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/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.001014/0.001014, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001026/0.001026, 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 1.072/1.072, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2808/0.2808, allocations: 32.8 MB / 294.3 MB, free: 1.188 MB / 266.7 MB " [Timeout remaining time 180] 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 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|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 376 MB, free: 4.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.043e-05, allocations: 6.312 kB / 376 MB, free: 4.629 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002613/0.002633, allocations: 2.27 MB / 378.3 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002756/0.005388, allocations: 0.8723 MB / 379.1 MB, free: 1.461 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.005545, allocations: 7.938 kB / 379.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.005673, allocations: 39.47 kB / 379.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.00588, allocations: 75.31 kB / 379.3 MB, free: 1.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003362/0.006217, allocations: 183.5 kB / 379.4 MB, free: 1.16 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.006547, allocations: 394.8 kB / 379.8 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.006743, allocations: 92.83 kB / 379.9 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.006987, allocations: 223.4 kB / 380.1 MB, free: 476 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.007137, allocations: 115.6 kB / 380.3 MB, free: 360 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.00718, allocations: 44 kB / 380.3 MB, free: 316 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.583e-05/0.007266, allocations: 51.92 kB / 380.3 MB, free: 264 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.007332, allocations: 91.66 kB / 380.4 MB, free: 172 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.007433, allocations: 115.7 kB / 380.6 MB, free: 56 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.007774, allocations: 286.8 kB / 380.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.007778, allocations: 0 / 380.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.00778, allocations: 0 / 380.8 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.007786, allocations: 0 / 380.8 MB, free: 15.77 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.0009076/0.008693, allocations: 0.8366 MB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.008733, allocations: 8.031 kB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003063/0.00904, allocations: 112.5 kB / 381.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.009417, allocations: 305.1 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.889e-05/0.009446, allocations: 25.03 kB / 382.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.321e-05/0.0095, allocations: 40.33 kB / 382.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.009801, allocations: 207.3 kB / 382.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.009814, allocations: 192 / 382.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.009838, allocations: 16.12 kB / 382.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.009849, allocations: 7.984 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.01001, allocations: 91.81 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009043/0.01091, allocations: 0.7144 MB / 383.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.01117, allocations: 151.3 kB / 383.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.355e-05/0.01126, allocations: 51.66 kB / 383.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.01129, allocations: 7.984 kB / 383.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.01151, allocations: 180.8 kB / 383.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.614e-06/0.01152, allocations: 0 / 383.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.000419/0.01193, allocations: 274 kB / 383.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.01197, allocations: 55.41 kB / 383.9 MB, free: 12.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.01218, allocations: 306.3 kB / 384.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.0122, allocations: 37.7 kB / 384.2 MB, free: 12.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.01231, allocations: 231.4 kB / 384.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/0.01237, allocations: 103.2 kB / 384.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.301e-05/0.01246, allocations: 75.72 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.01259, allocations: 0.5157 MB / 385.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.008e-05/0.01267, allocations: 40.72 kB / 385.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.01283, allocations: 239.1 kB / 385.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.0131, allocations: 309.3 kB / 385.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.0131, allocations: 0 / 385.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003383/0.01344, allocations: 312.9 kB / 386 MB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.01345, allocations: 4 kB / 386 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.01346, allocations: 4 kB / 386 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.01348, allocations: 11.94 kB / 386 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.01368, allocations: 76.31 kB / 386.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.01369, allocations: 15.98 kB / 386.1 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.89e-05/0.01378, allocations: 31.78 kB / 386.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.0138, allocations: 16 kB / 386.2 MB, free: 10.03 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.0001141/0.01391, allocations: 193.4 kB / 386.4 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.01395, allocations: 39.81 kB / 386.4 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003386/0.01429, allocations: 240.4 kB / 386.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.01429, allocations: 8.078 kB / 386.6 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.0143, allocations: 7.984 kB / 386.6 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.0143, allocations: 3.984 kB / 386.7 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.01481, allocations: 0.5713 MB / 387.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01481, allocations: 0 / 387.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.01496, allocations: 43.91 kB / 387.3 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.01496, allocations: 7.938 kB / 387.3 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.01498, allocations: 15.98 kB / 387.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01499, allocations: 0 / 387.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.01499, allocations: 0 / 387.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004382/0.01543, allocations: 444 kB / 387.7 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.01546, allocations: 39.73 kB / 387.8 MB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.01549, allocations: 7.938 kB / 387.8 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.01558, allocations: 12 kB / 387.8 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.01565, allocations: 23.95 kB / 387.8 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.01567, allocations: 15.98 kB / 387.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001241/0.01579, allocations: 211 kB / 388 MB, free: 8.094 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01579, allocations: 0 / 388 MB, free: 8.094 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002703/0.01606, allocations: 67.84 kB / 388.1 MB, free: 8.027 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.0001272/0.01619, allocations: 119.2 kB / 388.2 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002929/0.01648, allocations: 179.3 kB / 388.4 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.01648, allocations: 0 / 388.4 MB, free: 7.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.0166, allocations: 99.5 kB / 388.5 MB, free: 7.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.0169, allocations: 41.89 kB / 388.5 MB, free: 7.582 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009601/0.01786, allocations: 0.5888 MB / 389.1 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.06e-05/0.01793, allocations: 101.5 kB / 389.2 MB, free: 6.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000101/0.01803, allocations: 43.22 kB / 389.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.055e-05/0.0181, allocations: 32.5 kB / 389.3 MB, free: 6.766 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.0181, allocations: 0 / 389.3 MB, free: 6.766 MB / 362.7 MB Notification: Performance of Templates: time 0.005319/0.02342, allocations: 2.782 MB / 392.1 MB, free: 4.023 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] 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","",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.4787481231614947]