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.001407/0.001407, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001754, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 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.2222/0.2222, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001298, allocations: 75.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4011, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00336/0.4045, allocations: 2.318 MB / 0.5332 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.4062, allocations: 0.9069 MB / 0.5341 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.4063, allocations: 4.125 kB / 0.5341 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.4065, allocations: 40.84 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.4067, allocations: 66.25 kB / 0.5342 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004178/0.4072, allocations: 180.5 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004/0.4076, allocations: 390 kB / 0.5348 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.4078, allocations: 129.8 kB / 0.5349 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.4081, allocations: 152.7 kB / 0.535 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.4083, allocations: 165.8 kB / 0.5352 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.88e-05/0.4084, allocations: 36.81 kB / 0.5352 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.4085, allocations: 54.42 kB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.4086, allocations: 89.86 kB / 0.5354 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.4088, allocations: 180.6 kB / 0.5355 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004327/0.4092, allocations: 414.7 kB / 0.5359 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4092, allocations: 1.094 kB / 0.5359 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.4092, allocations: 0 / 0.5359 GB, free: 9.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4092, allocations: 0 / 0.5359 GB, free: 9.727 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.001191/0.4104, allocations: 0.6536 MB / 0.5366 GB, free: 9.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4105, allocations: 9.5 kB / 0.5366 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004659/0.411, allocations: 76.08 kB / 0.5367 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005582/0.4115, allocations: 364.8 kB / 0.537 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.4116, allocations: 22.28 kB / 0.537 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.4116, allocations: 37.36 kB / 0.5371 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.4122, allocations: 264.5 kB / 0.5373 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.4122, allocations: 5.375 kB / 0.5373 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.4122, allocations: 14.3 kB / 0.5373 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4122, allocations: 6.844 kB / 0.5373 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004428/0.4127, allocations: 195.6 kB / 0.5375 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.4141, allocations: 0.8243 MB / 0.5383 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.4145, allocations: 210.1 kB / 0.5385 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.4147, allocations: 93.41 kB / 0.5386 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.4148, allocations: 22.91 kB / 0.5386 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004097/0.4152, allocations: 219.6 kB / 0.5389 GB, free: 7.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.4152, allocations: 9.125 kB / 0.5389 GB, free: 7.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008093/0.416, allocations: 369.5 kB / 0.5392 GB, free: 7.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.4161, allocations: 60.22 kB / 0.5393 GB, free: 7.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.4164, allocations: 260.3 kB / 0.5395 GB, free: 7.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.434e-05/0.4164, allocations: 40.78 kB / 0.5396 GB, free: 7.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.4165, allocations: 186.4 kB / 0.5397 GB, free: 6.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.594e-05/0.4166, allocations: 99.14 kB / 0.5398 GB, free: 6.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.4168, allocations: 72.62 kB / 0.5399 GB, free: 6.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4169, allocations: 342.8 kB / 0.5402 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.4171, allocations: 88.8 kB / 0.5403 GB, free: 6.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.4174, allocations: 230.2 kB / 0.5405 GB, free: 6.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005173/0.418, allocations: 345.8 kB / 0.5409 GB, free: 5.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.418, allocations: 1.25 kB / 0.5409 GB, free: 5.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006964/0.4187, allocations: 377.7 kB / 0.5412 GB, free: 5.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.4187, allocations: 6.75 kB / 0.5412 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4187, allocations: 4.5 kB / 0.5412 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.4188, allocations: 7.625 kB / 0.5412 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.4191, allocations: 77.48 kB / 0.5413 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.4191, allocations: 6.781 kB / 0.5413 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001858/0.4193, allocations: 40.11 kB / 0.5414 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.4193, allocations: 14.91 kB / 0.5414 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.0002137/0.4196, allocations: 170.9 kB / 0.5415 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.615e-05/0.4196, allocations: 34.28 kB / 0.5416 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007324/0.4204, allocations: 328.9 kB / 0.5419 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.4204, allocations: 7.797 kB / 0.5419 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4204, allocations: 0 / 0.5419 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4204, allocations: 5.469 kB / 0.5419 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4215, allocations: 0.7187 MB / 0.5426 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4215, allocations: 1.094 kB / 0.5426 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002898/0.4218, allocations: 46.72 kB / 0.5426 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.4218, allocations: 2.344 kB / 0.5427 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.4218, allocations: 10.45 kB / 0.5427 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4219, allocations: 2.375 kB / 0.5427 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4219, allocations: 4 kB / 0.5427 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.4229, allocations: 0.5279 MB / 0.5432 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.155e-05/0.423, allocations: 109.2 kB / 0.5433 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.4231, allocations: 6.812 kB / 0.5433 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.4232, allocations: 22.33 kB / 0.5433 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.135e-05/0.4234, allocations: 26.25 kB / 0.5433 GB, free: 4.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.4234, allocations: 16.08 kB / 0.5434 GB, free: 4.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000191/0.4236, allocations: 185.6 kB / 0.5435 GB, free: 3.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4236, allocations: 0 / 0.5435 GB, free: 3.996 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004087/0.424, allocations: 74.12 kB / 0.5436 GB, free: 3.973 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.0001516/0.4242, allocations: 117.2 kB / 0.5437 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.4247, allocations: 271.2 kB / 0.544 GB, free: 3.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4247, allocations: 0 / 0.544 GB, free: 3.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.425, allocations: 128 kB / 0.5441 GB, free: 3.703 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4254, allocations: 36.16 kB / 0.5441 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.4264, allocations: 0.6221 MB / 0.5447 GB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.4268, allocations: 0.7919 MB / 0.5455 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.4269, allocations: 47.17 kB / 0.5456 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.425e-05/0.427, allocations: 35.42 kB / 0.5456 GB, free: 2.254 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.427, allocations: 0 / 0.5456 GB, free: 2.254 MB / 398.1 MB Notification: Performance of Templates: time 0.006371/0.4334, allocations: 2.825 MB / 0.5483 GB, free: 15.44 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