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.001665/0.001665, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2576/0.2576, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 76.16 kB / 481.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3545, allocations: 62.44 MB / 0.531 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004296/0.3588, allocations: 2.318 MB / 0.5332 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.3607, allocations: 0.9065 MB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.3609, allocations: 9.438 kB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.361, allocations: 39.53 kB / 0.5342 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.3613, allocations: 63.58 kB / 0.5342 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.3617, allocations: 184.5 kB / 0.5344 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004024/0.3621, allocations: 398.4 kB / 0.5348 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.3624, allocations: 122.2 kB / 0.5349 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002399/0.3627, allocations: 148.4 kB / 0.535 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.3629, allocations: 169.3 kB / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.391e-05/0.3629, allocations: 37.5 kB / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.761e-05/0.363, allocations: 50.45 kB / 0.5353 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.829e-05/0.3631, allocations: 85.41 kB / 0.5354 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.3633, allocations: 185.3 kB / 0.5356 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004651/0.3638, allocations: 410.8 kB / 0.5359 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3638, allocations: 0 / 0.5359 GB, free: 9.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3638, allocations: 0 / 0.5359 GB, free: 9.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.966e-06/0.3638, allocations: 1.375 kB / 0.5359 GB, free: 9.766 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.001177/0.365, allocations: 0.6618 MB / 0.5366 GB, free: 9.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.365, allocations: 9.188 kB / 0.5366 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004664/0.3655, allocations: 75.23 kB / 0.5367 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.3661, allocations: 357.2 kB / 0.537 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.3661, allocations: 29 kB / 0.537 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.3662, allocations: 33.73 kB / 0.5371 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.3667, allocations: 272.9 kB / 0.5373 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3668, allocations: 0.9688 kB / 0.5373 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.3668, allocations: 11.38 kB / 0.5373 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3668, allocations: 6.531 kB / 0.5374 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.3673, allocations: 192.1 kB / 0.5375 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3687, allocations: 0.8271 MB / 0.5383 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004698/0.3692, allocations: 206.6 kB / 0.5385 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.3694, allocations: 98.56 kB / 0.5386 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.3694, allocations: 18.62 kB / 0.5387 GB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.3699, allocations: 223 kB / 0.5389 GB, free: 7.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.3699, allocations: 5.906 kB / 0.5389 GB, free: 7.516 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008602/0.3708, allocations: 373 kB / 0.5392 GB, free: 7.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.3708, allocations: 59.95 kB / 0.5393 GB, free: 7.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.3711, allocations: 265.2 kB / 0.5395 GB, free: 7.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.3712, allocations: 32.45 kB / 0.5396 GB, free: 7.047 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.3713, allocations: 188.6 kB / 0.5397 GB, free: 6.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.837e-05/0.3714, allocations: 95.11 kB / 0.5398 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.3715, allocations: 74.62 kB / 0.5399 GB, free: 6.734 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.3716, allocations: 341.2 kB / 0.5402 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.3719, allocations: 93.78 kB / 0.5403 GB, free: 6.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.3722, allocations: 227 kB / 0.5405 GB, free: 6.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005531/0.3727, allocations: 344.8 kB / 0.5409 GB, free: 5.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.3728, allocations: 1.188 kB / 0.5409 GB, free: 5.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007778/0.3735, allocations: 381.4 kB / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.3736, allocations: 8.156 kB / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.3736, allocations: 5.156 kB / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.463e-05/0.3736, allocations: 9.312 kB / 0.5413 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000315/0.374, allocations: 74.2 kB / 0.5413 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.374, allocations: 6.688 kB / 0.5413 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.3742, allocations: 32.09 kB / 0.5414 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.3742, allocations: 23.08 kB / 0.5414 GB, free: 5.602 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.0001942/0.3744, allocations: 163.2 kB / 0.5415 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.3745, allocations: 37.39 kB / 0.5416 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/0.3752, allocations: 329.1 kB / 0.5419 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.3752, allocations: 3.438 kB / 0.5419 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3752, allocations: 5.156 kB / 0.5419 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3752, allocations: 3.984 kB / 0.5419 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.3763, allocations: 0.7203 MB / 0.5426 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3763, allocations: 0 / 0.5426 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.3765, allocations: 51.72 kB / 0.5427 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.789e-06/0.3766, allocations: 6.203 kB / 0.5427 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.3766, allocations: 11.3 kB / 0.5427 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3766, allocations: 1.062 kB / 0.5427 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3766, allocations: 0 / 0.5427 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009375/0.3775, allocations: 0.528 MB / 0.5432 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.809e-05/0.3777, allocations: 108.9 kB / 0.5433 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.424e-05/0.3777, allocations: 11.25 kB / 0.5433 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.3779, allocations: 17.55 kB / 0.5433 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.378, allocations: 22.97 kB / 0.5433 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.3781, allocations: 16.64 kB / 0.5434 GB, free: 4.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.3783, allocations: 189.3 kB / 0.5435 GB, free: 4.027 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3783, allocations: 0 / 0.5435 GB, free: 4.027 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.3788, allocations: 73.77 kB / 0.5436 GB, free: 4.004 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.0001915/0.379, allocations: 114.1 kB / 0.5437 GB, free: 3.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007512/0.3797, allocations: 266.8 kB / 0.544 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3797, allocations: 1.469 kB / 0.544 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.38, allocations: 130.4 kB / 0.5441 GB, free: 3.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.3805, allocations: 42.38 kB / 0.5441 GB, free: 3.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.382, allocations: 0.6165 MB / 0.5447 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004776/0.3824, allocations: 0.792 MB / 0.5455 GB, free: 2.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3826, allocations: 51.22 kB / 0.5456 GB, free: 2.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.928e-05/0.3827, allocations: 27.61 kB / 0.5456 GB, free: 2.293 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3827, allocations: 4 kB / 0.5456 GB, free: 2.289 MB / 398.1 MB Notification: Performance of Templates: time 0.006997/0.3897, allocations: 2.741 MB / 0.5483 GB, free: 15.56 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/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) Reference file matches