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.001371/0.001371, allocations: 74.97 kB / 19.93 MB, free: 1.77 MB / 14.72 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.001385/0.001385, allocations: 172.9 kB / 23.22 MB, free: 4.887 MB / 14.72 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.329/1.329, allocations: 158.6 MB / 185 MB, free: 6.395 MB / 174.1 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.2069/0.2069, allocations: 32.37 MB / 269.6 MB, free: 4.656 MB / 254.1 MB " [Timeout remaining time 180] 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 1.573e-06/1.573e-06, allocations: 0 / 407.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.577e-05, allocations: 2.281 kB / 407.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003449/0.003475, allocations: 2.114 MB / 409.5 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.004969, allocations: 0.7797 MB / 410.2 MB, free: 104 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.005098, allocations: 11.88 kB / 410.3 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.005228, allocations: 27.61 kB / 410.3 MB, free: 64 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002478/0.005475, allocations: 67.45 kB / 410.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.005811, allocations: 151.5 kB / 410.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004284/0.006239, allocations: 358.9 kB / 410.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.006456, allocations: 92.81 kB / 410.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002914/0.006747, allocations: 199.5 kB / 411.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.006959, allocations: 119.6 kB / 411.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.885e-05/0.007028, allocations: 32 kB / 411.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.653e-05/0.007085, allocations: 32 kB / 411.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.007183, allocations: 79.67 kB / 411.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.007322, allocations: 103.7 kB / 411.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.007766, allocations: 374.8 kB / 411.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.007769, allocations: 0 / 411.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.00777, allocations: 0 / 411.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.007781, allocations: 3.938 kB / 411.9 MB, free: 14.48 MB / 350.1 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.00128/0.00906, allocations: 0.6795 MB / 412.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.009097, allocations: 8.031 kB / 412.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.112e-05/0.009188, allocations: 44.7 kB / 412.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005244/0.009713, allocations: 265.1 kB / 412.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.00974, allocations: 24.81 kB / 412.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.009797, allocations: 28.38 kB / 412.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.01034, allocations: 256.6 kB / 413.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.01036, allocations: 192 / 413.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.0104, allocations: 20.11 kB / 413.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.0104, allocations: 8 kB / 413.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004435/0.01085, allocations: 181.9 kB / 413.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.01214, allocations: 0.6165 MB / 414 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.01259, allocations: 186.8 kB / 414.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.01282, allocations: 90.98 kB / 414.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.01285, allocations: 11.94 kB / 414.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004497/0.0133, allocations: 231.1 kB / 414.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.325e-06/0.0133, allocations: 0 / 414.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008819/0.01418, allocations: 377.3 kB / 414.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.01423, allocations: 55.41 kB / 414.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.01449, allocations: 241.8 kB / 415.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.01454, allocations: 33.69 kB / 415.2 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.01468, allocations: 180.7 kB / 415.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.01478, allocations: 95.2 kB / 415.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.0149, allocations: 74.05 kB / 415.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.01507, allocations: 338.8 kB / 415.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.0153, allocations: 88.7 kB / 415.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/0.01563, allocations: 222.3 kB / 416.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006077/0.01624, allocations: 352.8 kB / 416.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.01624, allocations: 4 kB / 416.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007178/0.01696, allocations: 369.3 kB / 416.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.01698, allocations: 8 kB / 416.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.01699, allocations: 4 kB / 416.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.01701, allocations: 8 kB / 416.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.01734, allocations: 75.83 kB / 417 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.01735, allocations: 11.94 kB / 417 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.01754, allocations: 39.7 kB / 417 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.01757, allocations: 16 kB / 417 MB, free: 9 MB / 350.1 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.0001976/0.01777, allocations: 173.6 kB / 417.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.01782, allocations: 27.81 kB / 417.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007179/0.01853, allocations: 319.6 kB / 417.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.01854, allocations: 4 kB / 417.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.01855, allocations: 3.984 kB / 417.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.01855, allocations: 3.938 kB / 417.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009691/0.01952, allocations: 0.5995 MB / 418.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01953, allocations: 0 / 418.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.01979, allocations: 55.89 kB / 418.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.0198, allocations: 0 / 418.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.01982, allocations: 8 kB / 418.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.01983, allocations: 0 / 418.2 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.01983, allocations: 3.938 kB / 418.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009936/0.02083, allocations: 0.5266 MB / 418.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.02087, allocations: 31.8 kB / 418.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.02092, allocations: 8 kB / 418.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.0211, allocations: 15.98 kB / 418.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/0.02118, allocations: 27.89 kB / 418.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.02121, allocations: 12 kB / 418.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001683/0.02138, allocations: 165.2 kB / 419 MB, free: 6.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02138, allocations: 0 / 419 MB, free: 6.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000371/0.02175, allocations: 75.81 kB / 419.1 MB, free: 6.895 MB / 350.1 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.0001485/0.0219, allocations: 111.2 kB / 419.2 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005722/0.02247, allocations: 244.3 kB / 419.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.02247, allocations: 4.312 kB / 419.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.02274, allocations: 123.8 kB / 419.5 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.0231, allocations: 36.59 kB / 419.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.02418, allocations: 0.5655 MB / 420.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.02437, allocations: 178 kB / 420.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001428/0.02451, allocations: 47.22 kB / 420.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.877e-05/0.0246, allocations: 28.48 kB / 420.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.0246, allocations: 0 / 420.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of Templates: time 0.00708/0.03168, allocations: 2.51 MB / 422.9 MB, free: 3.039 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] 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: 4.481297217309475]