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.001053/0.001053, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001118/0.001118, allocations: 170.4 kB / 25.61 MB, free: 8.891 MB / 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.8758/0.8758, allocations: 177.1 MB / 206.1 MB, free: 4.496 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.1303/0.1303, allocations: 34.26 MB / 296.9 MB, free: 13.93 MB / 282.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.102e-06/1.102e-06, allocations: 0 / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.259e-05/1.37e-05, allocations: 6.25 kB / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001937/0.00195, allocations: 2.236 MB / 381.5 MB, free: 21.17 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009177/0.002868, allocations: 0.88 MB / 382.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.002981, allocations: 7.938 kB / 382.4 MB, free: 20.28 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.003088, allocations: 39.53 kB / 382.4 MB, free: 20.24 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.003251, allocations: 71.31 kB / 382.5 MB, free: 20.17 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.003509, allocations: 191.5 kB / 382.7 MB, free: 19.98 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.003725, allocations: 398.8 kB / 383.1 MB, free: 19.59 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.003865, allocations: 84.83 kB / 383.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.004058, allocations: 231.4 kB / 383.4 MB, free: 19.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.004186, allocations: 123.6 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/0.00422, allocations: 36 kB / 383.6 MB, free: 19.12 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.637e-05/0.004286, allocations: 40 kB / 383.6 MB, free: 19.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.004332, allocations: 95.59 kB / 383.7 MB, free: 18.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.464e-05/0.004397, allocations: 115.7 kB / 383.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.004604, allocations: 286.8 kB / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.004606, allocations: 0 / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.7e-07/0.004606, allocations: 0 / 384.1 MB, free: 18.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.00461, allocations: 0 / 384.1 MB, free: 18.59 MB / 314.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.0005933/0.005203, allocations: 0.848 MB / 384.9 MB, free: 17.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.005246, allocations: 8.031 kB / 384.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002461/0.005493, allocations: 108.5 kB / 385 MB, free: 17.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.0057, allocations: 268.5 kB / 385.3 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.005721, allocations: 33.02 kB / 385.3 MB, free: 17.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.005754, allocations: 32.31 kB / 385.4 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.005948, allocations: 191.3 kB / 385.6 MB, free: 17.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.00596, allocations: 8.141 kB / 385.6 MB, free: 17.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.005978, allocations: 16.12 kB / 385.6 MB, free: 17.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.005985, allocations: 8 kB / 385.6 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.056e-05/0.006075, allocations: 72.52 kB / 385.7 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006189/0.006694, allocations: 0.6836 MB / 386.3 MB, free: 16.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.006848, allocations: 130.4 kB / 386.5 MB, free: 16.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.598e-05/0.006894, allocations: 43.66 kB / 386.5 MB, free: 16.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.006911, allocations: 7.984 kB / 386.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.007057, allocations: 188.7 kB / 386.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 1.292e-06/0.007058, allocations: 0 / 386.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002736/0.007332, allocations: 234.7 kB / 386.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.177e-05/0.007354, allocations: 63.33 kB / 387 MB, free: 15.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.007457, allocations: 298.2 kB / 387.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.007473, allocations: 37.7 kB / 387.3 MB, free: 15.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.305e-05/0.007526, allocations: 235.4 kB / 387.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.007567, allocations: 103.1 kB / 387.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.689e-05/0.007624, allocations: 83.67 kB / 387.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/0.007671, allocations: 0.5156 MB / 388.2 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.00771, allocations: 32.72 kB / 388.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.805e-05/0.007788, allocations: 227.2 kB / 388.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.007941, allocations: 301.3 kB / 388.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.007944, allocations: 4 kB / 388.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002242/0.008168, allocations: 285 kB / 389.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.008178, allocations: 8 kB / 389.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.008184, allocations: 7.984 kB / 389.1 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.396e-06/0.008192, allocations: 8 kB / 389.1 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.008343, allocations: 83.78 kB / 389.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.008349, allocations: 15.97 kB / 389.2 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.691e-05/0.008426, allocations: 31.72 kB / 389.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.008438, allocations: 16 kB / 389.2 MB, free: 13.03 MB / 314.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 7.282e-05/0.008511, allocations: 188.7 kB / 389.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.2e-05/0.008543, allocations: 39.81 kB / 389.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.008761, allocations: 224.3 kB / 389.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.008764, allocations: 4 kB / 389.7 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.008765, allocations: 3.938 kB / 389.7 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.008769, allocations: 3.984 kB / 389.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.009073, allocations: 0.515 MB / 390.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.009075, allocations: 4 kB / 390.2 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.009193, allocations: 47.91 kB / 390.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.009196, allocations: 4 kB / 390.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.00921, allocations: 8 kB / 390.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.009212, allocations: 3.938 kB / 390.3 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.009214, allocations: 3.984 kB / 390.3 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002671/0.009481, allocations: 423.6 kB / 390.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.961e-05/0.0095, allocations: 27.81 kB / 390.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.009528, allocations: 12 kB / 390.7 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.806e-05/0.009606, allocations: 19.92 kB / 390.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.009645, allocations: 23.95 kB / 390.8 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.009658, allocations: 15.98 kB / 390.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.009713, allocations: 199 kB / 391 MB, free: 11.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009713, allocations: 4 kB / 391 MB, free: 11.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000214/0.009927, allocations: 71.83 kB / 391.1 MB, free: 11.14 MB / 314.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 6.714e-05/0.009994, allocations: 118.1 kB / 391.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.01017, allocations: 171.4 kB / 391.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.01017, allocations: 0 / 391.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.314e-05/0.01024, allocations: 79.8 kB / 391.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.01046, allocations: 40.95 kB / 391.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000594/0.01105, allocations: 0.5831 MB / 392 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.773e-05/0.01109, allocations: 109.5 kB / 392.2 MB, free: 9.977 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.418e-05/0.01117, allocations: 38.95 kB / 392.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.462e-05/0.01126, allocations: 122.2 kB / 392.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01126, allocations: 0 / 392.3 MB, free: 9.82 MB / 314.7 MB Notification: Performance of Templates: time 0.004168/0.01543, allocations: 3.059 MB / 395.4 MB, free: 6.809 MB / 314.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: 2.851677432656288]