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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001404, allocations: 75.88 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.362, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00343/0.3655, allocations: 2.32 MB / 0.5339 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001658/0.3672, allocations: 0.8989 MB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.3673, allocations: 9.125 kB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.3675, allocations: 31.55 kB / 0.5348 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.3678, allocations: 68.31 kB / 0.5349 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.3682, allocations: 192.5 kB / 0.5351 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.3686, allocations: 390 kB / 0.5355 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.3688, allocations: 121.8 kB / 0.5356 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.3691, allocations: 157 kB / 0.5357 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002265/0.3693, allocations: 166.3 kB / 0.5359 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.858e-05/0.3694, allocations: 35.69 kB / 0.5359 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.3695, allocations: 47.06 kB / 0.536 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.695e-05/0.3696, allocations: 89.39 kB / 0.536 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.3698, allocations: 177.8 kB / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.3702, allocations: 417.7 kB / 0.5366 GB, free: 9.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3703, allocations: 1.031 kB / 0.5366 GB, free: 9.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3703, allocations: 0 / 0.5366 GB, free: 9.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3703, allocations: 0 / 0.5366 GB, free: 9.73 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.001147/0.3714, allocations: 0.6625 MB / 0.5373 GB, free: 9.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3715, allocations: 9.438 kB / 0.5373 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004768/0.372, allocations: 75.83 kB / 0.5373 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.3725, allocations: 356.6 kB / 0.5377 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.262e-05/0.3726, allocations: 33.06 kB / 0.5377 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.371e-05/0.3726, allocations: 29.5 kB / 0.5377 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.3732, allocations: 277.7 kB / 0.538 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.3732, allocations: 1.188 kB / 0.538 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.398e-05/0.3733, allocations: 10.78 kB / 0.538 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.3733, allocations: 6.594 kB / 0.538 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.3737, allocations: 187.2 kB / 0.5382 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.3751, allocations: 0.8275 MB / 0.539 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/0.3756, allocations: 211 kB / 0.5392 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.3758, allocations: 97.78 kB / 0.5393 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.3759, allocations: 6.375 kB / 0.5393 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004287/0.3763, allocations: 228.5 kB / 0.5395 GB, free: 7.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.024e-06/0.3763, allocations: 3.938 kB / 0.5395 GB, free: 7.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008139/0.3771, allocations: 370.9 kB / 0.5399 GB, free: 7.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3772, allocations: 59.66 kB / 0.5399 GB, free: 7.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002779/0.3775, allocations: 267.9 kB / 0.5402 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.3775, allocations: 33.83 kB / 0.5402 GB, free: 7.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3777, allocations: 184.5 kB / 0.5404 GB, free: 6.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.39e-05/0.3777, allocations: 95.61 kB / 0.5405 GB, free: 6.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.3779, allocations: 77.3 kB / 0.5406 GB, free: 6.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.378, allocations: 342.4 kB / 0.5409 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.3782, allocations: 98.22 kB / 0.541 GB, free: 6.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000289/0.3785, allocations: 221.2 kB / 0.5412 GB, free: 6.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.3791, allocations: 344.8 kB / 0.5415 GB, free: 5.824 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3791, allocations: 1.375 kB / 0.5415 GB, free: 5.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008102/0.3799, allocations: 381.9 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.3799, allocations: 10.16 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3799, allocations: 5.094 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.38, allocations: 10.81 kB / 0.5419 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003164/0.3803, allocations: 69.77 kB / 0.542 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.3803, allocations: 14.55 kB / 0.542 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.3805, allocations: 32.84 kB / 0.542 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.16e-05/0.3806, allocations: 18.23 kB / 0.542 GB, free: 5.57 MB / 398.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.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.0002085/0.3808, allocations: 170.7 kB / 0.5422 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.533e-05/0.3809, allocations: 33.88 kB / 0.5422 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007233/0.3816, allocations: 329.9 kB / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3816, allocations: 2.938 kB / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3816, allocations: 1.438 kB / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3816, allocations: 0 / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.3827, allocations: 0.7278 MB / 0.5433 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3827, allocations: 0 / 0.5433 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002556/0.3829, allocations: 43.09 kB / 0.5433 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.3829, allocations: 2.5 kB / 0.5433 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.383, allocations: 18.36 kB / 0.5433 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.383, allocations: 5.281 kB / 0.5433 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.383, allocations: 1.344 kB / 0.5433 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008986/0.3839, allocations: 0.5271 MB / 0.5439 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.384, allocations: 109.4 kB / 0.544 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.3841, allocations: 7.219 kB / 0.544 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.3842, allocations: 13.33 kB / 0.544 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.3843, allocations: 27.48 kB / 0.544 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3844, allocations: 11.47 kB / 0.544 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3845, allocations: 189.8 kB / 0.5442 GB, free: 4 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3846, allocations: 0 / 0.5442 GB, free: 4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004004/0.385, allocations: 73.19 kB / 0.5443 GB, free: 3.977 MB / 398.1 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.000142/0.3851, allocations: 122 kB / 0.5444 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005811/0.3857, allocations: 276 kB / 0.5446 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3857, allocations: 0 / 0.5446 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.386, allocations: 132.6 kB / 0.5448 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.3864, allocations: 36.41 kB / 0.5448 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3875, allocations: 0.645 MB / 0.5454 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.3878, allocations: 0.7959 MB / 0.5462 GB, free: 2.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.79e-05/0.3879, allocations: 35.42 kB / 0.5462 GB, free: 2.215 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3879, allocations: 0 / 0.5462 GB, free: 2.215 MB / 398.1 MB Notification: Performance of Templates: time 0.005854/0.3938, allocations: 3.901 MB / 0.5501 GB, free: 14.32 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (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) 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) Reference file matches