Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001549/0.001549, allocations: 110.5 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.001649/0.001649, allocations: 213.2 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.363/1.363, allocations: 230.3 MB / 258 MB, free: 8.203 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2128/0.2128, allocations: 46.89 MB / 361.3 MB, free: 4.426 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean")
translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002358/0.002358, allocations: 79.86 kB / 0.497 GB, free: 7.578 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2671, allocations: 66.02 MB / 0.5615 GB, free: 4.605 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003467/0.2705, allocations: 2.34 MB / 0.5638 GB, free: 2.258 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00143/0.2719, allocations: 0.9202 MB / 0.5647 GB, free: 1.332 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2721, allocations: 11.88 kB / 0.5647 GB, free: 1.32 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.2722, allocations: 35.53 kB / 0.5648 GB, free: 1.285 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.2724, allocations: 63.39 kB / 0.5648 GB, free: 1.223 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.2728, allocations: 191.6 kB / 0.565 GB, free: 1.035 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004015/0.2732, allocations: 386.9 kB / 0.5654 GB, free: 0.6562 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.2734, allocations: 100.6 kB / 0.5655 GB, free: 0.5547 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.2736, allocations: 159.3 kB / 0.5656 GB, free: 408 kB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.2738, allocations: 163.2 kB / 0.5658 GB, free: 244 kB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.2738, allocations: 36 kB / 0.5658 GB, free: 208 kB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.274, allocations: 51.98 kB / 0.5659 GB, free: 156 kB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.274, allocations: 91.62 kB / 0.5659 GB, free: 64 kB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001763/0.2742, allocations: 171.1 kB / 0.5661 GB, free: 15.89 MB / 414.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004308/0.2746, allocations: 412.8 kB / 0.5665 GB, free: 15.5 MB / 414.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.2746, allocations: 4 kB / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of FrontEnd: time 1.002e-06/0.2746, allocations: 0 / 0.5665 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of Transformations before backend: time 5.69e-06/0.2747, allocations: 0 / 0.5665 GB, free: 15.49 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.001171/0.2758, allocations: 0.7306 MB / 0.5672 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.2759, allocations: 8.031 kB / 0.5672 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004487/0.2763, allocations: 84.61 kB / 0.5673 GB, free: 14.62 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.2768, allocations: 302.9 kB / 0.5676 GB, free: 14.3 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.2768, allocations: 21.03 kB / 0.5676 GB, free: 14.29 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.2769, allocations: 36.33 kB / 0.5676 GB, free: 14.25 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005337/0.2774, allocations: 274.2 kB / 0.5679 GB, free: 13.98 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2775, allocations: 0 / 0.5679 GB, free: 13.98 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.2775, allocations: 15.94 kB / 0.5679 GB, free: 13.96 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2775, allocations: 8 kB / 0.5679 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.2779, allocations: 190.5 kB / 0.5681 GB, free: 13.77 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.2793, allocations: 0.7925 MB / 0.5689 GB, free: 12.93 MB / 414.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.2797, allocations: 185.8 kB / 0.5691 GB, free: 12.74 MB / 414.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.2799, allocations: 92.8 kB / 0.5692 GB, free: 12.64 MB / 414.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.28, allocations: 11.92 kB / 0.5692 GB, free: 12.63 MB / 414.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004206/0.2804, allocations: 235.6 kB / 0.5694 GB, free: 12.39 MB / 414.1 MB
Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.2804, allocations: 0 / 0.5694 GB, free: 12.39 MB / 414.1 MB
Notification: Performance of matching and sorting (n=31): time 0.0008143/0.2812, allocations: 369.3 kB / 0.5697 GB, free: 12.02 MB / 414.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.2813, allocations: 59.41 kB / 0.5698 GB, free: 11.95 MB / 414.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.2815, allocations: 268.2 kB / 0.5701 GB, free: 11.68 MB / 414.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.2816, allocations: 33.7 kB / 0.5701 GB, free: 11.64 MB / 414.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.2817, allocations: 184.7 kB / 0.5703 GB, free: 11.46 MB / 414.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.2818, allocations: 103.2 kB / 0.5704 GB, free: 11.36 MB / 414.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2819, allocations: 77.98 kB / 0.5704 GB, free: 11.27 MB / 414.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001493/0.2821, allocations: 342.8 kB / 0.5708 GB, free: 10.93 MB / 414.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.2823, allocations: 96.69 kB / 0.5709 GB, free: 10.84 MB / 414.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.2826, allocations: 222.6 kB / 0.5711 GB, free: 10.56 MB / 414.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.2831, allocations: 340.8 kB / 0.5714 GB, free: 10.16 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2831, allocations: 0 / 0.5714 GB, free: 10.16 MB / 414.1 MB
Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006929/0.2838, allocations: 384.7 kB / 0.5718 GB, free: 9.781 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2838, allocations: 10.03 kB / 0.5718 GB, free: 9.773 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2838, allocations: 4 kB / 0.5718 GB, free: 9.77 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.2839, allocations: 8 kB / 0.5718 GB, free: 9.762 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.2842, allocations: 76.36 kB / 0.5719 GB, free: 9.688 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.2842, allocations: 15.92 kB / 0.5719 GB, free: 9.672 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001822/0.2844, allocations: 31.78 kB / 0.5719 GB, free: 9.641 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.2844, allocations: 20 kB / 0.5719 GB, free: 9.621 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.0001748/0.2846, allocations: 165.6 kB / 0.5721 GB, free: 9.449 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.2846, allocations: 35.75 kB / 0.5721 GB, free: 9.414 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.2853, allocations: 320.5 kB / 0.5724 GB, free: 9.09 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.2853, allocations: 7.984 kB / 0.5724 GB, free: 9.082 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2853, allocations: 0 / 0.5724 GB, free: 9.082 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2853, allocations: 0 / 0.5724 GB, free: 9.082 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000962/0.2863, allocations: 0.6963 MB / 0.5731 GB, free: 8.336 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2863, allocations: 8 kB / 0.5731 GB, free: 8.328 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.2865, allocations: 47.91 kB / 0.5732 GB, free: 8.281 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2865, allocations: 0 / 0.5732 GB, free: 8.281 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.2866, allocations: 15.98 kB / 0.5732 GB, free: 8.266 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2866, allocations: 0 / 0.5732 GB, free: 8.266 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2866, allocations: 0 / 0.5732 GB, free: 8.266 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008908/0.2875, allocations: 0.5311 MB / 0.5737 GB, free: 7.719 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.2875, allocations: 31.81 kB / 0.5737 GB, free: 7.688 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.989e-05/0.2875, allocations: 11.94 kB / 0.5737 GB, free: 7.676 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.2877, allocations: 11.98 kB / 0.5737 GB, free: 7.664 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.4e-05/0.2878, allocations: 23.95 kB / 0.5738 GB, free: 7.641 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.2878, allocations: 15.98 kB / 0.5738 GB, free: 7.625 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.0001796/0.288, allocations: 187.1 kB / 0.574 GB, free: 7.441 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.288, allocations: 0 / 0.574 GB, free: 7.441 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003605/0.2884, allocations: 79.84 kB / 0.574 GB, free: 7.363 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.0001202/0.2885, allocations: 107.2 kB / 0.5741 GB, free: 7.25 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005615/0.289, allocations: 260.2 kB / 0.5744 GB, free: 6.996 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.289, allocations: 4.312 kB / 0.5744 GB, free: 6.992 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.2893, allocations: 120.1 kB / 0.5745 GB, free: 6.875 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.2896, allocations: 36.91 kB / 0.5745 GB, free: 6.84 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.2906, allocations: 0.6294 MB / 0.5752 GB, free: 6.184 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.291, allocations: 0.7919 MB / 0.5759 GB, free: 5.359 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.0001408/0.2912, allocations: 43.23 kB / 0.576 GB, free: 5.316 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.478e-05/0.2913, allocations: 31.42 kB / 0.576 GB, free: 5.285 MB / 414.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.2913, allocations: 4 kB / 0.576 GB, free: 5.281 MB / 414.1 MB
Notification: Performance of Templates: time 0.006863/0.2981, allocations: 2.922 MB / 0.5789 GB, free: 2.367 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.665739195421338]