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.001348/0.001348, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2567/0.2567, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 71.89 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4825/0.484, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003737/0.4878, allocations: 2.318 MB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.4897, allocations: 0.9031 MB / 0.5341 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.4899, allocations: 4.125 kB / 0.5341 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.4901, allocations: 39.47 kB / 0.5342 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.4904, allocations: 67.62 kB / 0.5342 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004319/0.4908, allocations: 184.5 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004664/0.4913, allocations: 390 kB / 0.5348 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004454/0.4918, allocations: 129.8 kB / 0.5349 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.4921, allocations: 147.4 kB / 0.5351 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.4923, allocations: 169.8 kB / 0.5352 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.471e-05/0.4924, allocations: 36.16 kB / 0.5353 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.4926, allocations: 51.58 kB / 0.5353 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.693e-05/0.4927, allocations: 85.33 kB / 0.5354 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.4929, allocations: 177.8 kB / 0.5356 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005611/0.4934, allocations: 408.8 kB / 0.5359 GB, free: 9.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4935, allocations: 7.984 kB / 0.5359 GB, free: 9.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4935, allocations: 0 / 0.5359 GB, free: 9.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.4935, allocations: 1.062 kB / 0.5359 GB, free: 9.742 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.001353/0.4948, allocations: 0.6645 MB / 0.5366 GB, free: 9.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.4949, allocations: 9.812 kB / 0.5366 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005056/0.4954, allocations: 88.2 kB / 0.5367 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/0.496, allocations: 353 kB / 0.537 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.4961, allocations: 26.03 kB / 0.5371 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-05/0.4962, allocations: 33.84 kB / 0.5371 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005792/0.4967, allocations: 276.3 kB / 0.5373 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.4968, allocations: 5.359 kB / 0.5374 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.4968, allocations: 14.86 kB / 0.5374 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.4968, allocations: 6.406 kB / 0.5374 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.4973, allocations: 191.9 kB / 0.5376 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.4989, allocations: 0.8236 MB / 0.5384 GB, free: 7.809 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.4995, allocations: 210.4 kB / 0.5386 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.4997, allocations: 102.1 kB / 0.5387 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.4998, allocations: 10.23 kB / 0.5387 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004715/0.5003, allocations: 225.1 kB / 0.5389 GB, free: 7.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.585e-06/0.5003, allocations: 3.938 kB / 0.5389 GB, free: 7.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009333/0.5012, allocations: 377.4 kB / 0.5392 GB, free: 7.289 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.5013, allocations: 61.53 kB / 0.5393 GB, free: 7.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.5016, allocations: 263.8 kB / 0.5396 GB, free: 7.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.5016, allocations: 41.09 kB / 0.5396 GB, free: 6.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.5018, allocations: 177.7 kB / 0.5398 GB, free: 6.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.5019, allocations: 107.3 kB / 0.5399 GB, free: 6.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.502, allocations: 69.09 kB / 0.5399 GB, free: 6.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.5023, allocations: 342.5 kB / 0.5403 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.5025, allocations: 93.7 kB / 0.5404 GB, free: 6.309 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.5028, allocations: 229.6 kB / 0.5406 GB, free: 6.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005948/0.5034, allocations: 345.3 kB / 0.5409 GB, free: 5.805 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.5035, allocations: 1.031 kB / 0.5409 GB, free: 5.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007061/0.5042, allocations: 378.4 kB / 0.5413 GB, free: 5.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.5042, allocations: 7.062 kB / 0.5413 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.5042, allocations: 4.156 kB / 0.5413 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.5043, allocations: 7.219 kB / 0.5413 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.5046, allocations: 82.27 kB / 0.5414 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.5046, allocations: 6.781 kB / 0.5414 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.5048, allocations: 36.36 kB / 0.5414 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.005e-05/0.5048, allocations: 21.94 kB / 0.5414 GB, free: 5.547 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.000217/0.505, allocations: 164.2 kB / 0.5416 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.573e-05/0.5051, allocations: 37.64 kB / 0.5416 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007161/0.5058, allocations: 325.3 kB / 0.5419 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.5058, allocations: 3.812 kB / 0.5419 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5059, allocations: 3.984 kB / 0.5419 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.5059, allocations: 0 / 0.5419 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.507, allocations: 0.7203 MB / 0.5426 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.507, allocations: 0 / 0.5426 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.5073, allocations: 55.77 kB / 0.5427 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.5073, allocations: 2.406 kB / 0.5427 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.5073, allocations: 6.312 kB / 0.5427 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.5073, allocations: 6.094 kB / 0.5427 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5074, allocations: 0 / 0.5427 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009469/0.5083, allocations: 0.5361 MB / 0.5432 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.5084, allocations: 108.6 kB / 0.5433 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.5084, allocations: 7.469 kB / 0.5433 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.5086, allocations: 18.42 kB / 0.5434 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.563e-05/0.5087, allocations: 22.28 kB / 0.5434 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.5087, allocations: 16.42 kB / 0.5434 GB, free: 4.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002115/0.509, allocations: 190 kB / 0.5436 GB, free: 3.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.509, allocations: 4 kB / 0.5436 GB, free: 3.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004724/0.5094, allocations: 73.31 kB / 0.5436 GB, free: 3.949 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.0001618/0.5096, allocations: 121.4 kB / 0.5438 GB, free: 3.844 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006117/0.5102, allocations: 267.7 kB / 0.544 GB, free: 3.73 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5102, allocations: 1.594 kB / 0.544 GB, free: 3.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.5105, allocations: 134.4 kB / 0.5441 GB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.5109, allocations: 36.12 kB / 0.5442 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/0.5119, allocations: 0.6165 MB / 0.5448 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.5125, allocations: 0.7921 MB / 0.5456 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.5126, allocations: 47.22 kB / 0.5456 GB, free: 2.258 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.5127, allocations: 39.36 kB / 0.5456 GB, free: 2.219 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.5127, allocations: 0 / 0.5456 GB, free: 2.219 MB / 398.1 MB Notification: Performance of Templates: time 0.006473/0.5192, allocations: 2.744 MB / 0.5483 GB, free: 15.48 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