Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009024/0.0009024, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003063/0.003966, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0009822/0.0009822, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001395/0.002377, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.046/1.046, allocations: 177.2 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1268/1.172, allocations: 53.65 MB / 243.3 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3638/0.3638, allocations: 32.8 MB / 276.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03308/0.3969, allocations: 12.53 MB / 289.3 MB, free: 8.676 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 290.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.754e-05, allocations: 4.141 kB / 290.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003769/0.003796, allocations: 2.302 MB / 292.9 MB, free: 5.828 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.005686, allocations: 0.9035 MB / 293.8 MB, free: 5.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.005962, allocations: 15.88 kB / 293.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.006089, allocations: 31.55 kB / 293.9 MB, free: 5.055 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002252/0.006314, allocations: 75.31 kB / 293.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.006815, allocations: 191.5 kB / 294.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004855/0.0073, allocations: 387.5 kB / 294.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.007541, allocations: 91.45 kB / 294.6 MB, free: 4.324 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000467/0.008008, allocations: 264 kB / 294.8 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.008232, allocations: 123.6 kB / 295 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.456e-05/0.008286, allocations: 36 kB / 295 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.008422, allocations: 48 kB / 295 MB, free: 3.863 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.05e-05/0.008503, allocations: 67.73 kB / 295.1 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.008609, allocations: 83.81 kB / 295.2 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.009001, allocations: 258.9 kB / 295.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.283e-05/0.009024, allocations: 3.984 kB / 295.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.009026, allocations: 0 / 295.4 MB, free: 3.457 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.009047, allocations: 0 / 295.4 MB, free: 3.457 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009983/0.01005, allocations: 0.6241 MB / 296.1 MB, free: 2.805 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.01009, allocations: 11.97 kB / 296.1 MB, free: 2.793 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004238/0.01051, allocations: 173.8 kB / 296.3 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.0109, allocations: 249.6 kB / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.01093, allocations: 29.03 kB / 296.5 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.851e-05/0.01098, allocations: 32.36 kB / 296.6 MB, free: 2.277 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.01129, allocations: 195.3 kB / 296.7 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.01131, allocations: 192 / 296.7 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.01133, allocations: 16.12 kB / 296.8 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.01134, allocations: 8 kB / 296.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.01146, allocations: 64.48 kB / 296.8 MB, free: 1.992 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009126/0.01238, allocations: 0.4964 MB / 297.3 MB, free: 1.473 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.01261, allocations: 115 kB / 297.4 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.156e-05/0.01267, allocations: 40.83 kB / 297.5 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.0127, allocations: 8 kB / 297.5 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.01295, allocations: 171.6 kB / 297.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.035e-06/0.01295, allocations: 0 / 297.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003074/0.01326, allocations: 173.5 kB / 297.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.01331, allocations: 63.33 kB / 297.9 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.0135, allocations: 250.8 kB / 298.1 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.01354, allocations: 37.7 kB / 298.2 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.089e-05/0.01363, allocations: 169.2 kB / 298.3 MB, free: 412 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.72e-05/0.0137, allocations: 95.16 kB / 298.4 MB, free: 316 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.252e-05/0.0138, allocations: 78 kB / 298.5 MB, free: 232 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.01393, allocations: 342.8 kB / 298.8 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.381e-05/0.014, allocations: 32.72 kB / 298.9 MB, free: 15.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.01413, allocations: 160.1 kB / 299 MB, free: 15.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.01439, allocations: 257.3 kB / 299.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.706e-06/0.01439, allocations: 0 / 299.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000317/0.01471, allocations: 221.1 kB / 299.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.01473, allocations: 8 kB / 299.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.01474, allocations: 4 kB / 299.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.01476, allocations: 4 kB / 299.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000262/0.01502, allocations: 100.3 kB / 299.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.01503, allocations: 11.94 kB / 299.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.01515, allocations: 31.78 kB / 299.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.01517, allocations: 19.98 kB / 299.7 MB, free: 14.93 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_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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.0001311/0.0153, allocations: 140.5 kB / 299.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.407e-05/0.01534, allocations: 32.11 kB / 299.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.01562, allocations: 171.8 kB / 300 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.01562, allocations: 11.98 kB / 300 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.01563, allocations: 3.938 kB / 300 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.01563, allocations: 4 kB / 300 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.01606, allocations: 391 kB / 300.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01607, allocations: 3.938 kB / 300.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.01625, allocations: 47.91 kB / 300.5 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.234e-05/0.01628, allocations: 31.75 kB / 300.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.01629, allocations: 0 / 300.5 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.01631, allocations: 19.92 kB / 300.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.01631, allocations: 0 / 300.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.01632, allocations: 4 kB / 300.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.01666, allocations: 302.6 kB / 300.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.0167, allocations: 8 kB / 300.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.01681, allocations: 11.98 kB / 300.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.547e-05/0.01686, allocations: 27.89 kB / 300.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.01688, allocations: 11.98 kB / 300.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.396e-05/0.01697, allocations: 92.62 kB / 301 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01697, allocations: 0 / 301 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003167/0.01729, allocations: 71.78 kB / 301 MB, free: 13.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.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.0001283/0.01742, allocations: 104 kB / 301.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002461/0.01767, allocations: 141.6 kB / 301.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/0.01768, allocations: 7.984 kB / 301.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.01778, allocations: 81.56 kB / 301.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.01806, allocations: 63.48 kB / 301.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.01997, allocations: 0.5664 MB / 302 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.04e-05/0.02005, allocations: 101.5 kB / 302.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.02017, allocations: 43.22 kB / 302.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.02031, allocations: 99.36 kB / 302.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02031, allocations: 0 / 302.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of Templates: time 0.006499/0.02681, allocations: 3.008 MB / 305.2 MB, free: 9.309 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1853017015382648]