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.00156/0.00156, allocations: 88.23 kB / 20.2 MB, free: 4.227 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.001827/0.001827, allocations: 157.7 kB / 23.51 MB, free: 0.9219 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.539/1.539, allocations: 158.6 MB / 185.3 MB, free: 2.887 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.2246/0.2246, allocations: 32.37 MB / 270 MB, free: 14.77 MB / 266.7 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.753e-06/1.753e-06, allocations: 0 / 346.9 MB, free: 9.824 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.824e-05, allocations: 2.312 kB / 346.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002952/0.00298, allocations: 2.115 MB / 349 MB, free: 7.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.004288, allocations: 0.772 MB / 349.8 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.004492, allocations: 7.938 kB / 349.8 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.004658, allocations: 39.53 kB / 349.9 MB, free: 6.871 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002507/0.004909, allocations: 63.44 kB / 349.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.005287, allocations: 155.5 kB / 350.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003268/0.005614, allocations: 358.9 kB / 350.4 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.005826, allocations: 84.84 kB / 350.5 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.006095, allocations: 199.6 kB / 350.7 MB, free: 6.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.006284, allocations: 111.6 kB / 350.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.006339, allocations: 36 kB / 350.8 MB, free: 5.883 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.109e-05/0.00638, allocations: 32 kB / 350.9 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.396e-05/0.006444, allocations: 87.66 kB / 351 MB, free: 5.766 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.006545, allocations: 99.73 kB / 351.1 MB, free: 5.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.006864, allocations: 378.7 kB / 351.4 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.006867, allocations: 0 / 351.4 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006868, allocations: 0 / 351.4 MB, free: 5.297 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.006878, allocations: 0 / 351.4 MB, free: 5.297 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.001115/0.007994, allocations: 0.6719 MB / 352.1 MB, free: 4.578 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.008033, allocations: 8.031 kB / 352.1 MB, free: 4.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.008174, allocations: 56.75 kB / 352.2 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/0.008639, allocations: 285 kB / 352.4 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.008664, allocations: 20.88 kB / 352.5 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.008724, allocations: 36.36 kB / 352.5 MB, free: 4.156 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.009211, allocations: 260.6 kB / 352.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.009231, allocations: 192 / 352.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.009265, allocations: 16.11 kB / 352.8 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.009272, allocations: 8 kB / 352.8 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003673/0.00964, allocations: 173.9 kB / 352.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.01079, allocations: 0.6321 MB / 353.6 MB, free: 3.039 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004015/0.01119, allocations: 194.7 kB / 353.8 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.01138, allocations: 84.81 kB / 353.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.01142, allocations: 4 kB / 353.9 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.0118, allocations: 231.1 kB / 354.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.0118, allocations: 0 / 354.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008016/0.0126, allocations: 389.3 kB / 354.5 MB, free: 2.125 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.01263, allocations: 59.41 kB / 354.5 MB, free: 2.055 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.01282, allocations: 233.8 kB / 354.7 MB, free: 1.816 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.01285, allocations: 41.69 kB / 354.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.299e-05/0.01292, allocations: 172.7 kB / 355 MB, free: 1.598 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.155e-05/0.01298, allocations: 95.19 kB / 355 MB, free: 1.504 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.01309, allocations: 81.98 kB / 355.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.01315, allocations: 338.8 kB / 355.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.01333, allocations: 84.7 kB / 355.5 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.01354, allocations: 230.3 kB / 355.8 MB, free: 0.707 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/0.01393, allocations: 344.7 kB / 356.1 MB, free: 316 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.01393, allocations: 0 / 356.1 MB, free: 316 kB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006483/0.01458, allocations: 380.9 kB / 356.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.0146, allocations: 8 kB / 356.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.01461, allocations: 4 kB / 356.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/0.01464, allocations: 8 kB / 356.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.01497, allocations: 80.3 kB / 356.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.01499, allocations: 4 kB / 356.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.0152, allocations: 51.64 kB / 356.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.01523, allocations: 16 kB / 356.6 MB, free: 15.76 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.0002083/0.01544, allocations: 169.5 kB / 356.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.622e-05/0.01551, allocations: 36 kB / 356.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007468/0.01626, allocations: 331.4 kB / 357.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.01627, allocations: 4 kB / 357.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.01627, allocations: 0 / 357.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.01628, allocations: 3.938 kB / 357.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.01735, allocations: 0.5956 MB / 357.8 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.01736, allocations: 3.984 kB / 357.8 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002705/0.01763, allocations: 51.91 kB / 357.8 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-06/0.01764, allocations: 4 kB / 357.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.01767, allocations: 8 kB / 357.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.01767, allocations: 3.984 kB / 357.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.01768, allocations: 7.938 kB / 357.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.01873, allocations: 0.5305 MB / 358.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-05/0.01879, allocations: 31.81 kB / 358.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.809e-05/0.01885, allocations: 8 kB / 358.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.01904, allocations: 15.98 kB / 358.4 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-05/0.01913, allocations: 31.89 kB / 358.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.01916, allocations: 15.98 kB / 358.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.01935, allocations: 165.2 kB / 358.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01935, allocations: 0 / 358.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004213/0.01977, allocations: 63.89 kB / 358.7 MB, free: 13.63 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.0001887/0.01996, allocations: 111.2 kB / 358.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006517/0.02061, allocations: 247.6 kB / 359.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.02062, allocations: 4 kB / 359.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.02091, allocations: 115.8 kB / 359.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.0213, allocations: 37.69 kB / 359.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.02256, allocations: 0.5798 MB / 359.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.02279, allocations: 174.1 kB / 360 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001637/0.02295, allocations: 51.22 kB / 360 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.988e-05/0.02305, allocations: 36.44 kB / 360 MB, free: 12.23 MB / 298.7 MB Notification: Performance of SimCode: time 1.202e-06/0.02305, allocations: 3.938 kB / 360 MB, free: 12.23 MB / 298.7 MB Notification: Performance of Templates: time 0.007623/0.03068, allocations: 2.534 MB / 362.6 MB, free: 9.723 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=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.935932144057006]