Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.00295/0.00295, allocations: 96.97 kB / 20.21 MB, free: 4.207 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.004589/0.004589, allocations: 165.2 kB / 23.52 MB, free: 0.9023 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 158.6 MB / 185.3 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2444/0.2444, allocations: 32.37 MB / 270 MB, free: 14.78 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 346.9 MB, free: 9.816 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.563e-05/3.832e-05, allocations: 6.312 kB / 346.9 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004035/0.004073, allocations: 2.157 MB / 349.1 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.005941, allocations: 0.7877 MB / 349.9 MB, free: 6.848 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003705/0.006312, allocations: 11.88 kB / 349.9 MB, free: 6.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002511/0.006563, allocations: 31.59 kB / 349.9 MB, free: 6.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000481/0.007044, allocations: 67.44 kB / 350 MB, free: 6.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005393/0.007583, allocations: 151.5 kB / 350.1 MB, free: 6.59 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000701/0.008284, allocations: 358.9 kB / 350.5 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.008623, allocations: 88.83 kB / 350.6 MB, free: 6.152 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005168/0.00914, allocations: 195.6 kB / 350.8 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.009411, allocations: 119.5 kB / 350.9 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-05/0.009505, allocations: 36 kB / 350.9 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.615e-05/0.009571, allocations: 32 kB / 350.9 MB, free: 5.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.009688, allocations: 83.72 kB / 351 MB, free: 5.695 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.009865, allocations: 103.7 kB / 351.1 MB, free: 5.594 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005592/0.01042, allocations: 374.8 kB / 351.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.01043, allocations: 0 / 351.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.01043, allocations: 4 kB / 351.5 MB, free: 5.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.01046, allocations: 0 / 351.5 MB, free: 5.223 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001622/0.01208, allocations: 0.8595 MB / 352.3 MB, free: 4.305 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.01213, allocations: 8.031 kB / 352.4 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.01231, allocations: 56.75 kB / 352.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/0.01294, allocations: 275.9 kB / 352.7 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.01297, allocations: 20.88 kB / 352.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.684e-05/0.01303, allocations: 36.38 kB / 352.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.01352, allocations: 236.6 kB / 353 MB, free: 3.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.01355, allocations: 4.125 kB / 353 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.334e-05/0.01359, allocations: 20.12 kB / 353 MB, free: 3.633 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.0136, allocations: 4 kB / 353 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.01401, allocations: 153.9 kB / 353.1 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.01561, allocations: 0.7367 MB / 353.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.01604, allocations: 195.3 kB / 354.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.01622, allocations: 79.66 kB / 354.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.235e-05/0.01628, allocations: 7.984 kB / 354.2 MB, free: 2.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/0.01669, allocations: 220.8 kB / 354.4 MB, free: 2.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.0167, allocations: 0 / 354.4 MB, free: 2.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008336/0.01753, allocations: 361.3 kB / 354.7 MB, free: 1.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.01758, allocations: 59.41 kB / 354.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.01786, allocations: 336.2 kB / 355.1 MB, free: 1.402 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.0179, allocations: 37.7 kB / 355.2 MB, free: 1.359 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.01802, allocations: 227.5 kB / 355.4 MB, free: 1.133 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.858e-05/0.0181, allocations: 107.2 kB / 355.5 MB, free: 1.027 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.01823, allocations: 95.72 kB / 355.6 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.01837, allocations: 0.5235 MB / 356.1 MB, free: 396 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.01857, allocations: 80.7 kB / 356.2 MB, free: 316 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/0.01888, allocations: 282.8 kB / 356.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007506/0.01964, allocations: 385.4 kB / 356.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.01965, allocations: 0 / 356.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009814/0.02063, allocations: 368.9 kB / 357.2 MB, free: 15.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/0.02066, allocations: 8 kB / 357.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.266e-05/0.02069, allocations: 4 kB / 357.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.944e-05/0.02073, allocations: 4.469 kB / 357.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004535/0.02118, allocations: 83.89 kB / 357.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.07e-05/0.02121, allocations: 15.88 kB / 357.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.02153, allocations: 39.7 kB / 357.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.02158, allocations: 16 kB / 357.4 MB, free: 14.95 MB / 298.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.y) * 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.0004224/0.02201, allocations: 208.3 kB / 357.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.02214, allocations: 39.8 kB / 357.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009295/0.02307, allocations: 303.5 kB / 357.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.02308, allocations: 4 kB / 357.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.02308, allocations: 0 / 357.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/0.0231, allocations: 7.938 kB / 357.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001607/0.02471, allocations: 0.6651 MB / 358.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.02472, allocations: 144 / 358.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.02498, allocations: 47.97 kB / 358.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/0.02499, allocations: 3.984 kB / 358.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.02503, allocations: 11.98 kB / 358.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.02504, allocations: 4 kB / 358.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.02504, allocations: 3.938 kB / 358.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.02613, allocations: 0.5546 MB / 359.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-05/0.02621, allocations: 35.75 kB / 359.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.584e-05/0.02627, allocations: 4 kB / 359.2 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.02644, allocations: 11.98 kB / 359.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.02655, allocations: 31.89 kB / 359.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.02658, allocations: 15.98 kB / 359.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002634/0.02684, allocations: 221.1 kB / 359.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02684, allocations: 4 kB / 359.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.02731, allocations: 63.89 kB / 359.6 MB, free: 12.66 MB / 298.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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.y) * 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.0002138/0.02753, allocations: 111.2 kB / 359.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.02826, allocations: 256.1 kB / 359.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.02826, allocations: 4.062 kB / 359.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.02856, allocations: 123.6 kB / 360.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.029, allocations: 41.73 kB / 360.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.03055, allocations: 0.589 MB / 360.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.03081, allocations: 178.1 kB / 360.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.031, allocations: 39.23 kB / 360.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.03112, allocations: 36.42 kB / 360.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.332e-06/0.03112, allocations: 0 / 360.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of Templates: time 0.009305/0.04043, allocations: 2.543 MB / 363.5 MB, free: 8.715 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.902552364044823]