Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001838/0.001838, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00263/0.00263, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 230.3 MB / 258 MB, free: 8.219 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2392/0.2392, allocations: 46.94 MB / 361.4 MB, free: 4.406 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean")
translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 79.86 kB / 0.4972 GB, free: 7.535 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3225, allocations: 66.05 MB / 0.5617 GB, free: 4.5 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004224/0.3267, allocations: 2.318 MB / 0.5639 GB, free: 2.172 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001809/0.3285, allocations: 0.924 MB / 0.5648 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.3287, allocations: 11.88 kB / 0.5648 GB, free: 1.23 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.3289, allocations: 35.53 kB / 0.5649 GB, free: 1.195 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.3292, allocations: 67.39 kB / 0.5649 GB, free: 1.129 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004749/0.3297, allocations: 183.6 kB / 0.5651 GB, free: 0.9492 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004669/0.3302, allocations: 390.9 kB / 0.5655 GB, free: 0.5664 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.3304, allocations: 96.56 kB / 0.5656 GB, free: 480 kB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.3306, allocations: 163.3 kB / 0.5657 GB, free: 316 kB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.3309, allocations: 163.2 kB / 0.5659 GB, free: 152 kB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.64e-05/0.3309, allocations: 40 kB / 0.5659 GB, free: 112 kB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.331, allocations: 47.98 kB / 0.566 GB, free: 64 kB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.3312, allocations: 95.62 kB / 0.5661 GB, free: 15.97 MB / 414.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000168/0.3313, allocations: 171 kB / 0.5662 GB, free: 15.8 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004905/0.3318, allocations: 413 kB / 0.5666 GB, free: 15.4 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3318, allocations: 0 / 0.5666 GB, free: 15.4 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.302e-06/0.3318, allocations: 0 / 0.5666 GB, free: 15.4 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 7.895e-06/0.3318, allocations: 0 / 0.5666 GB, free: 15.4 MB / 414.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.001315/0.3331, allocations: 0.7345 MB / 0.5673 GB, free: 14.62 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3332, allocations: 12.03 kB / 0.5673 GB, free: 14.61 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004618/0.3336, allocations: 80.61 kB / 0.5674 GB, free: 14.53 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005189/0.3342, allocations: 291.1 kB / 0.5677 GB, free: 14.22 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3342, allocations: 21.03 kB / 0.5677 GB, free: 14.2 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-05/0.3342, allocations: 44.31 kB / 0.5678 GB, free: 14.16 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005235/0.3348, allocations: 274.1 kB / 0.568 GB, free: 13.89 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3348, allocations: 0 / 0.568 GB, free: 13.89 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.3348, allocations: 19.94 kB / 0.568 GB, free: 13.87 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.3348, allocations: 8 kB / 0.568 GB, free: 13.86 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.3353, allocations: 194.5 kB / 0.5682 GB, free: 13.67 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001413/0.3367, allocations: 0.7886 MB / 0.569 GB, free: 12.83 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.3371, allocations: 182.8 kB / 0.5692 GB, free: 12.64 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.3373, allocations: 89.69 kB / 0.5693 GB, free: 12.55 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.3373, allocations: 11.92 kB / 0.5693 GB, free: 12.54 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004221/0.3378, allocations: 239.6 kB / 0.5695 GB, free: 12.3 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3378, allocations: 0 / 0.5695 GB, free: 12.3 MB / 414.1 MB
Notification: Performance of matching and sorting (n=31): time 0.0007863/0.3386, allocations: 369.3 kB / 0.5699 GB, free: 11.93 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3386, allocations: 59.34 kB / 0.5699 GB, free: 11.86 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.3389, allocations: 264.2 kB / 0.5702 GB, free: 11.59 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.3389, allocations: 37.7 kB / 0.5702 GB, free: 11.55 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.3391, allocations: 184.7 kB / 0.5704 GB, free: 11.37 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.873e-05/0.3391, allocations: 103.2 kB / 0.5705 GB, free: 11.27 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3392, allocations: 74.05 kB / 0.5705 GB, free: 11.18 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001659/0.3394, allocations: 346.8 kB / 0.5709 GB, free: 10.84 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.3396, allocations: 88.69 kB / 0.571 GB, free: 10.75 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.3399, allocations: 222.6 kB / 0.5712 GB, free: 10.47 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005335/0.3405, allocations: 352.8 kB / 0.5715 GB, free: 10.07 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3405, allocations: 7.938 kB / 0.5715 GB, free: 10.06 MB / 414.1 MB
Notification: Performance of matching and sorting (n=46) (initialization): time 0.000677/0.3411, allocations: 381.1 kB / 0.5719 GB, free: 9.68 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3412, allocations: 10.34 kB / 0.5719 GB, free: 9.672 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3412, allocations: 4 kB / 0.5719 GB, free: 9.668 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.3412, allocations: 8 kB / 0.5719 GB, free: 9.66 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.3415, allocations: 71.89 kB / 0.572 GB, free: 9.59 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3415, allocations: 11.94 kB / 0.572 GB, free: 9.578 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3416, allocations: 35.77 kB / 0.572 GB, free: 9.543 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.3417, allocations: 16 kB / 0.572 GB, free: 9.527 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.0001716/0.3418, allocations: 169.8 kB / 0.5722 GB, free: 9.352 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.3419, allocations: 35.75 kB / 0.5722 GB, free: 9.316 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00065/0.3425, allocations: 316.3 kB / 0.5725 GB, free: 8.996 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.3426, allocations: 8 kB / 0.5725 GB, free: 8.988 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3426, allocations: 0 / 0.5725 GB, free: 8.988 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3426, allocations: 4 kB / 0.5725 GB, free: 8.984 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009506/0.3435, allocations: 0.6925 MB / 0.5732 GB, free: 8.242 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3435, allocations: 4.094 kB / 0.5732 GB, free: 8.238 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.3437, allocations: 47.91 kB / 0.5733 GB, free: 8.191 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.3438, allocations: 7.984 kB / 0.5733 GB, free: 8.184 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3438, allocations: 15.98 kB / 0.5733 GB, free: 8.168 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3438, allocations: 0 / 0.5733 GB, free: 8.168 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3438, allocations: 0 / 0.5733 GB, free: 8.168 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008804/0.3447, allocations: 0.531 MB / 0.5738 GB, free: 7.621 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.3447, allocations: 35.81 kB / 0.5738 GB, free: 7.586 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.3448, allocations: 7.938 kB / 0.5739 GB, free: 7.578 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.3449, allocations: 19.98 kB / 0.5739 GB, free: 7.559 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.087e-05/0.345, allocations: 23.95 kB / 0.5739 GB, free: 7.535 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.345, allocations: 15.98 kB / 0.5739 GB, free: 7.52 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001845/0.3452, allocations: 187.1 kB / 0.5741 GB, free: 7.336 MB / 414.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3452, allocations: 0 / 0.5741 GB, free: 7.336 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003378/0.3455, allocations: 71.84 kB / 0.5742 GB, free: 7.266 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.0001206/0.3457, allocations: 111.2 kB / 0.5743 GB, free: 7.148 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005326/0.3462, allocations: 259.5 kB / 0.5745 GB, free: 6.895 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3462, allocations: 0 / 0.5745 GB, free: 6.895 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.3464, allocations: 116.8 kB / 0.5746 GB, free: 6.781 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.3468, allocations: 40.95 kB / 0.5747 GB, free: 6.742 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.3478, allocations: 0.6263 MB / 0.5753 GB, free: 6.09 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.3482, allocations: 0.7959 MB / 0.576 GB, free: 5.262 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001466/0.3484, allocations: 43.23 kB / 0.5761 GB, free: 5.219 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.046e-05/0.3484, allocations: 31.42 kB / 0.5761 GB, free: 5.188 MB / 414.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.3484, allocations: 0 / 0.5761 GB, free: 5.188 MB / 414.1 MB
Notification: Performance of Templates: time 0.006718/0.3552, allocations: 2.929 MB / 0.579 GB, free: 2.27 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.317313628271222]