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.001153/0.001153, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001342/0.001342, allocations: 165.8 kB / 24.82 MB, free: 9.266 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 1.098/1.098, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.3075/0.3075, allocations: 34.26 MB / 296.1 MB, free: 0.7305 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 2.334e-06/2.334e-06, allocations: 0 / 378.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.703e-05/3.936e-05, allocations: 6.25 kB / 378.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003686/0.003725, allocations: 2.237 MB / 380.7 MB, free: 132 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.00547, allocations: 0.8723 MB / 381.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.005713, allocations: 7.938 kB / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.005888, allocations: 39.53 kB / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002858/0.006174, allocations: 71.31 kB / 381.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.006779, allocations: 195.4 kB / 381.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.007374, allocations: 394.8 kB / 382.3 MB, free: 14.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.007613, allocations: 80.84 kB / 382.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004026/0.008015, allocations: 239.4 kB / 382.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.008224, allocations: 123.5 kB / 382.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.008271, allocations: 32 kB / 382.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.008372, allocations: 47.94 kB / 382.8 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.008446, allocations: 91.66 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.008546, allocations: 115.7 kB / 383 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.008896, allocations: 275 kB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.008899, allocations: 0 / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.008901, allocations: 7.922 kB / 383.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.008908, allocations: 0 / 383.3 MB, free: 13.56 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.0008707/0.009779, allocations: 0.848 MB / 384.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.009821, allocations: 8.031 kB / 384.1 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002821/0.0101, allocations: 104.5 kB / 384.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.01039, allocations: 284.5 kB / 384.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.01042, allocations: 25.03 kB / 384.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.01046, allocations: 36.33 kB / 384.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.01072, allocations: 203.2 kB / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.01073, allocations: 192 / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.01076, allocations: 16.12 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.01077, allocations: 7.984 kB / 384.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.01091, allocations: 68.53 kB / 384.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009797/0.01188, allocations: 0.6797 MB / 385.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.01213, allocations: 135.3 kB / 385.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.842e-05/0.0122, allocations: 43.66 kB / 385.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.01223, allocations: 11.98 kB / 385.7 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.01246, allocations: 180.7 kB / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.565e-06/0.01246, allocations: 0 / 385.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004041/0.01287, allocations: 234.2 kB / 386.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.01292, allocations: 63.33 kB / 386.2 MB, free: 10.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.01314, allocations: 302.2 kB / 386.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.01317, allocations: 37.7 kB / 386.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.01329, allocations: 239.3 kB / 386.8 MB, free: 9.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.92e-05/0.01337, allocations: 99.19 kB / 386.9 MB, free: 9.777 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.01347, allocations: 83.67 kB / 387 MB, free: 9.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.01364, allocations: 0.5117 MB / 387.5 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.23e-05/0.0137, allocations: 36.66 kB / 387.5 MB, free: 9.125 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.01386, allocations: 225.9 kB / 387.7 MB, free: 8.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.01415, allocations: 297.4 kB / 388 MB, free: 8.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.01416, allocations: 8 kB / 388 MB, free: 8.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00036/0.01452, allocations: 272.9 kB / 388.3 MB, free: 8.168 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.01453, allocations: 12.45 kB / 388.3 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.01454, allocations: 4 kB / 388.3 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.01456, allocations: 12 kB / 388.3 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.01478, allocations: 83.78 kB / 388.4 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.01479, allocations: 11.98 kB / 388.4 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.01491, allocations: 27.78 kB / 388.4 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.01493, allocations: 16 kB / 388.5 MB, free: 8.004 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.000135/0.01507, allocations: 192.4 kB / 388.6 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.163e-05/0.01512, allocations: 39.81 kB / 388.7 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003404/0.01546, allocations: 224.6 kB / 388.9 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.01546, allocations: 4 kB / 388.9 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.01547, allocations: 3.938 kB / 388.9 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.01547, allocations: 7.922 kB / 388.9 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005398/0.01601, allocations: 0.5097 MB / 389.4 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.01602, allocations: 0 / 389.4 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.01619, allocations: 47.91 kB / 389.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.01619, allocations: 4 kB / 389.5 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.01621, allocations: 11.94 kB / 389.5 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.01622, allocations: 15.92 kB / 389.5 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01622, allocations: 0 / 389.5 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.01666, allocations: 419.7 kB / 389.9 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.292e-05/0.01669, allocations: 27.75 kB / 389.9 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.01672, allocations: 11.94 kB / 390 MB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.01684, allocations: 15.92 kB / 390 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.01689, allocations: 23.95 kB / 390 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.01692, allocations: 15.98 kB / 390 MB, free: 6.383 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.01703, allocations: 202.9 kB / 390.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01703, allocations: 8 kB / 390.2 MB, free: 6.176 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003371/0.01737, allocations: 67.84 kB / 390.3 MB, free: 6.109 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.0001324/0.0175, allocations: 119.2 kB / 390.4 MB, free: 5.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002696/0.01777, allocations: 160.1 kB / 390.6 MB, free: 5.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01777, allocations: 0 / 390.6 MB, free: 5.824 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.01788, allocations: 79.92 kB / 390.6 MB, free: 5.742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.01822, allocations: 48.94 kB / 390.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009604/0.01918, allocations: 0.5806 MB / 391.3 MB, free: 5.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.029e-05/0.01926, allocations: 101.5 kB / 391.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.01937, allocations: 43.22 kB / 391.4 MB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.01951, allocations: 122.2 kB / 391.5 MB, free: 4.793 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01952, allocations: 0 / 391.5 MB, free: 4.793 MB / 362.7 MB Notification: Performance of Templates: time 0.00608/0.0256, allocations: 3.003 MB / 394.5 MB, free: 1.844 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.358190785162151]