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.001922/0.001922, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001631/0.001631, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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.526/1.526, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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.2468/0.2468, allocations: 44.9 MB / 359.6 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 179] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 77.91 kB / 0.4943 GB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3003, allocations: 65.46 MB / 0.5582 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004111/0.3044, allocations: 2.335 MB / 0.5605 GB, free: 5.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.306, allocations: 0.9163 MB / 0.5614 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.3062, allocations: 7.938 kB / 0.5614 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.3063, allocations: 39.55 kB / 0.5615 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002391/0.3066, allocations: 71.31 kB / 0.5615 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.307, allocations: 179.7 kB / 0.5617 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004677/0.3075, allocations: 390.9 kB / 0.5621 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/0.3077, allocations: 100.6 kB / 0.5622 GB, free: 3.648 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.3079, allocations: 163.4 kB / 0.5623 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.3082, allocations: 167.1 kB / 0.5625 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.653e-05/0.3082, allocations: 36 kB / 0.5625 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.3084, allocations: 48 kB / 0.5626 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.785e-05/0.3085, allocations: 91.67 kB / 0.5627 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.3086, allocations: 175 kB / 0.5628 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.3091, allocations: 404.9 kB / 0.5632 GB, free: 2.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3091, allocations: 0 / 0.5632 GB, free: 2.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3091, allocations: 0 / 0.5632 GB, free: 2.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3091, allocations: 4 kB / 0.5632 GB, free: 2.586 MB / 398.1 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.00128/0.3104, allocations: 0.7306 MB / 0.5639 GB, free: 1.809 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3104, allocations: 16.02 kB / 0.5639 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004548/0.3109, allocations: 72.62 kB / 0.564 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000569/0.3115, allocations: 299 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.3115, allocations: 21.03 kB / 0.5643 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.3115, allocations: 36.33 kB / 0.5643 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.3121, allocations: 278.1 kB / 0.5646 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.3121, allocations: 8 kB / 0.5646 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.3121, allocations: 8 kB / 0.5646 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.3121, allocations: 11.94 kB / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.3126, allocations: 190.5 kB / 0.5648 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.314, allocations: 0.7962 MB / 0.5656 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004366/0.3145, allocations: 182.8 kB / 0.5658 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.3147, allocations: 92.75 kB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.3147, allocations: 19.91 kB / 0.5659 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.3152, allocations: 231.7 kB / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.913e-06/0.3152, allocations: 0 / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008468/0.316, allocations: 361.3 kB / 0.5664 GB, free: 15.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.3161, allocations: 71.33 kB / 0.5665 GB, free: 15.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/0.3164, allocations: 256.2 kB / 0.5668 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.3164, allocations: 41.7 kB / 0.5668 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.3165, allocations: 184.7 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.3166, allocations: 103.2 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.3168, allocations: 70.06 kB / 0.5671 GB, free: 14.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.3169, allocations: 346.8 kB / 0.5675 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.3172, allocations: 92.69 kB / 0.5676 GB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/0.3175, allocations: 224.8 kB / 0.5678 GB, free: 13.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005511/0.318, allocations: 344.8 kB / 0.5681 GB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.318, allocations: 0 / 0.5681 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007055/0.3187, allocations: 388.9 kB / 0.5685 GB, free: 12.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3188, allocations: 4.094 kB / 0.5685 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3188, allocations: 11.94 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3188, allocations: 4 kB / 0.5685 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.3191, allocations: 79.83 kB / 0.5686 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.3191, allocations: 8 kB / 0.5686 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.3193, allocations: 36.06 kB / 0.5686 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.3193, allocations: 19.98 kB / 0.5686 GB, free: 12.71 MB / 414.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_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.0001906/0.3195, allocations: 170.7 kB / 0.5688 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.3196, allocations: 35.73 kB / 0.5688 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006749/0.3203, allocations: 324.3 kB / 0.5691 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3203, allocations: 4 kB / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3203, allocations: 0 / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.3203, allocations: 3.984 kB / 0.5691 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.3214, allocations: 0.6885 MB / 0.5698 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3214, allocations: 0 / 0.5698 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.3216, allocations: 51.91 kB / 0.5699 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3216, allocations: 8.141 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.3216, allocations: 7.984 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3216, allocations: 4 kB / 0.5699 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3216, allocations: 0 / 0.5699 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009061/0.3225, allocations: 0.5311 MB / 0.5704 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.488e-05/0.3226, allocations: 27.75 kB / 0.5704 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.3226, allocations: 16.05 kB / 0.5704 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3228, allocations: 15.98 kB / 0.5705 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.605e-05/0.3229, allocations: 19.97 kB / 0.5705 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.3229, allocations: 19.92 kB / 0.5705 GB, free: 10.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.3231, allocations: 195 kB / 0.5707 GB, free: 10.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3231, allocations: 0 / 0.5707 GB, free: 10.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.3235, allocations: 67.84 kB / 0.5708 GB, free: 10.45 MB / 414.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_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.0001315/0.3236, allocations: 115.3 kB / 0.5709 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005645/0.3242, allocations: 259.4 kB / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3242, allocations: 0.9375 kB / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.3245, allocations: 119.8 kB / 0.5712 GB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3248, allocations: 45.09 kB / 0.5713 GB, free: 9.914 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.3259, allocations: 0.6545 MB / 0.5719 GB, free: 9.227 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/0.3264, allocations: 0.7959 MB / 0.5727 GB, free: 8.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.3265, allocations: 35.42 kB / 0.5727 GB, free: 8.371 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3265, allocations: 0 / 0.5727 GB, free: 8.371 MB / 414.1 MB Notification: Performance of Templates: time 0.006557/0.3331, allocations: 3.917 MB / 0.5765 GB, free: 4.461 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 7.8322006079833955]