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.001767/0.001767, allocations: 113.1 kB / 21.85 MB, free: 68 kB / 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.001829/0.001829, allocations: 218.6 kB / 25.13 MB, free: 3.582 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.454/1.454, allocations: 230.2 MB / 258.5 MB, free: 8.25 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.2185/0.2185, allocations: 46.93 MB / 361.8 MB, free: 4.43 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.002514/0.002514, allocations: 83.81 kB / 0.4975 GB, free: 7.648 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3095, allocations: 66.05 MB / 0.562 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003757/0.3132, allocations: 2.33 MB / 0.5643 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.315, allocations: 0.9163 MB / 0.5652 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.3152, allocations: 7.938 kB / 0.5652 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001521/0.3153, allocations: 43.42 kB / 0.5652 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.3156, allocations: 63.39 kB / 0.5653 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.316, allocations: 187.6 kB / 0.5654 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.3165, allocations: 386.9 kB / 0.5658 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.3167, allocations: 108.6 kB / 0.5659 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.317, allocations: 159.3 kB / 0.5661 GB, free: 344 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.3172, allocations: 163.2 kB / 0.5662 GB, free: 180 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.235e-05/0.3173, allocations: 40 kB / 0.5663 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3174, allocations: 44 kB / 0.5663 GB, free: 96 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.982e-05/0.3175, allocations: 95.61 kB / 0.5664 GB, free: 0 / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.3176, allocations: 167.2 kB / 0.5666 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004891/0.3181, allocations: 413 kB / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.3181, allocations: 0 / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3181, allocations: 0 / 0.567 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3182, allocations: 4 kB / 0.567 GB, free: 15.43 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.001319/0.3195, allocations: 0.7227 MB / 0.5677 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3195, allocations: 16.02 kB / 0.5677 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004791/0.32, allocations: 80.62 kB / 0.5678 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.3206, allocations: 295 kB / 0.568 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.3206, allocations: 21.03 kB / 0.5681 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.315e-05/0.3207, allocations: 40.33 kB / 0.5681 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.3212, allocations: 274.2 kB / 0.5684 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.3212, allocations: 7.875 kB / 0.5684 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.3213, allocations: 12 kB / 0.5684 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.3213, allocations: 4 kB / 0.5684 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004473/0.3217, allocations: 194.5 kB / 0.5686 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.3231, allocations: 0.7847 MB / 0.5693 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.3235, allocations: 191.9 kB / 0.5695 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.3238, allocations: 84.81 kB / 0.5696 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.3238, allocations: 15.92 kB / 0.5696 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/0.3242, allocations: 239.6 kB / 0.5698 GB, free: 12.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.3242, allocations: 0 / 0.5698 GB, free: 12.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008377/0.3251, allocations: 369.3 kB / 0.5702 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.3251, allocations: 59.41 kB / 0.5702 GB, free: 11.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.3254, allocations: 268.2 kB / 0.5705 GB, free: 11.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.3254, allocations: 33.7 kB / 0.5705 GB, free: 11.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.3256, allocations: 192.7 kB / 0.5707 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.923e-05/0.3257, allocations: 103.1 kB / 0.5708 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.3258, allocations: 74.06 kB / 0.5709 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3259, allocations: 342.8 kB / 0.5712 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.3262, allocations: 92.69 kB / 0.5713 GB, free: 10.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/0.3265, allocations: 226.5 kB / 0.5715 GB, free: 10.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005369/0.327, allocations: 336.9 kB / 0.5718 GB, free: 10.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.327, allocations: 0 / 0.5718 GB, free: 10.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006944/0.3277, allocations: 388.9 kB / 0.5722 GB, free: 9.723 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3277, allocations: 8 kB / 0.5722 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3277, allocations: 4 kB / 0.5722 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.3278, allocations: 11.94 kB / 0.5722 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.3281, allocations: 67.91 kB / 0.5723 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.3281, allocations: 11.92 kB / 0.5723 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.3283, allocations: 40.12 kB / 0.5723 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.3283, allocations: 19.98 kB / 0.5724 GB, free: 9.562 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.0001738/0.3285, allocations: 161.7 kB / 0.5725 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.979e-05/0.3285, allocations: 39.88 kB / 0.5726 GB, free: 9.355 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006674/0.3292, allocations: 324.3 kB / 0.5729 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3292, allocations: 4 kB / 0.5729 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3292, allocations: 0 / 0.5729 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3292, allocations: 7.984 kB / 0.5729 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.3302, allocations: 0.6886 MB / 0.5736 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3302, allocations: 4 kB / 0.5736 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.3305, allocations: 51.91 kB / 0.5736 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3305, allocations: 4 kB / 0.5736 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.3305, allocations: 11.98 kB / 0.5736 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3305, allocations: 96 / 0.5736 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3305, allocations: 3.938 kB / 0.5736 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008944/0.3314, allocations: 0.531 MB / 0.5741 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.3314, allocations: 39.75 kB / 0.5742 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.3315, allocations: 11.98 kB / 0.5742 GB, free: 7.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.3316, allocations: 11.98 kB / 0.5742 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.3317, allocations: 19.97 kB / 0.5742 GB, free: 7.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-05/0.3318, allocations: 15.98 kB / 0.5742 GB, free: 7.559 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001906/0.3319, allocations: 191.1 kB / 0.5744 GB, free: 7.371 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3319, allocations: 0 / 0.5744 GB, free: 7.371 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.3323, allocations: 71.84 kB / 0.5745 GB, free: 7.301 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.0001308/0.3324, allocations: 115.2 kB / 0.5746 GB, free: 7.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000553/0.333, allocations: 251.5 kB / 0.5748 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.333, allocations: 0.9375 kB / 0.5748 GB, free: 6.934 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.3333, allocations: 119.9 kB / 0.575 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.3336, allocations: 38.66 kB / 0.575 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.3347, allocations: 0.6333 MB / 0.5756 GB, free: 6.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.3351, allocations: 0.7919 MB / 0.5764 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3352, allocations: 47.22 kB / 0.5764 GB, free: 5.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.14e-05/0.3353, allocations: 27.44 kB / 0.5765 GB, free: 5.223 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3353, allocations: 0 / 0.5765 GB, free: 5.223 MB / 414.1 MB Notification: Performance of Templates: time 0.007035/0.3423, allocations: 2.931 MB / 0.5793 GB, free: 2.305 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 -s gbode -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/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_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.9170301480044145]