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.0009904/0.0009905, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1884/0.1884, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 79.88 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09087, allocations: 62.45 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003108/0.094, allocations: 2.308 MB / 483.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.09526, allocations: 0.8997 MB / 484.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.09537, allocations: 7.938 kB / 484.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.09549, allocations: 35.53 kB / 484.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001852/0.09569, allocations: 67.38 kB / 484.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.09602, allocations: 179.6 kB / 484.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003297/0.09636, allocations: 391 kB / 485.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.09657, allocations: 132.1 kB / 485.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.09677, allocations: 155.3 kB / 485.6 MB, free: 384 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.09695, allocations: 163.2 kB / 485.8 MB, free: 220 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/0.097, allocations: 40 kB / 485.8 MB, free: 180 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.31e-05/0.09709, allocations: 55.97 kB / 485.9 MB, free: 124 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.09717, allocations: 91.62 kB / 485.9 MB, free: 32 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.09732, allocations: 175.1 kB / 486.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.09766, allocations: 418.3 kB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09767, allocations: 0 / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09768, allocations: 0 / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.09769, allocations: 0 / 486.5 MB, free: 15.45 MB / 366.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.0009958/0.09869, allocations: 0.6537 MB / 487.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.09873, allocations: 8.031 kB / 487.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004455/0.09918, allocations: 80.33 kB / 487.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.0997, allocations: 363.9 kB / 487.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.09974, allocations: 24.94 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.09979, allocations: 28.38 kB / 487.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.1003, allocations: 272.9 kB / 487.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1003, allocations: 0 / 487.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.1004, allocations: 15.98 kB / 488 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.1004, allocations: 15.98 kB / 488 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000398/0.1008, allocations: 182.1 kB / 488.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.1021, allocations: 0.8226 MB / 489 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004223/0.1026, allocations: 198.8 kB / 489.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.1028, allocations: 104.8 kB / 489.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.1028, allocations: 11.92 kB / 489.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.1033, allocations: 231 kB / 489.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.943e-06/0.1033, allocations: 0 / 489.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007962/0.1041, allocations: 365.8 kB / 489.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.1042, allocations: 59.41 kB / 489.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1044, allocations: 266.9 kB / 490.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1044, allocations: 37.69 kB / 490.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.1046, allocations: 180.6 kB / 490.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.1046, allocations: 102.5 kB / 490.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.1047, allocations: 78 kB / 490.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1049, allocations: 342.8 kB / 490.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.105, allocations: 88.7 kB / 491 MB, free: 10.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.1053, allocations: 226.6 kB / 491.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.1058, allocations: 356.7 kB / 491.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1058, allocations: 4 kB / 491.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000573/0.1063, allocations: 377.1 kB / 491.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1064, allocations: 11.94 kB / 491.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1064, allocations: 4 kB / 491.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1064, allocations: 8 kB / 492 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.1067, allocations: 67.89 kB / 492 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.1067, allocations: 11.94 kB / 492 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.1069, allocations: 39.67 kB / 492.1 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.1069, allocations: 12 kB / 492.1 MB, free: 9.531 MB / 366.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.0001485/0.1071, allocations: 173.7 kB / 492.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.1071, allocations: 35.56 kB / 492.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005713/0.1077, allocations: 321.2 kB / 492.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1077, allocations: 0 / 492.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1077, allocations: 12 kB / 492.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1077, allocations: 0 / 492.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008284/0.1086, allocations: 0.7206 MB / 493.3 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1086, allocations: 4 kB / 493.3 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.1088, allocations: 43.91 kB / 493.4 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1088, allocations: 4 kB / 493.4 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.1089, allocations: 8 kB / 493.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1089, allocations: 7.984 kB / 493.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1089, allocations: 0 / 493.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007507/0.1096, allocations: 0.515 MB / 493.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.615e-05/0.1097, allocations: 116.7 kB / 494 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.1098, allocations: 4 kB / 494 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.1099, allocations: 20.12 kB / 494.1 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.11, allocations: 23.95 kB / 494.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.11, allocations: 19.98 kB / 494.1 MB, free: 7.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001517/0.1102, allocations: 182 kB / 494.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1102, allocations: 96 / 494.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.1105, allocations: 83.62 kB / 494.4 MB, free: 7.152 MB / 366.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.0001142/0.1107, allocations: 112.2 kB / 494.5 MB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.1111, allocations: 267.5 kB / 494.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1112, allocations: 0 / 494.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002186/0.1114, allocations: 128.8 kB / 494.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.1117, allocations: 40.81 kB / 494.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008837/0.1126, allocations: 0.6296 MB / 495.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.1129, allocations: 0.7881 MB / 496.3 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.113, allocations: 43.23 kB / 496.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.424e-05/0.1131, allocations: 35.42 kB / 496.4 MB, free: 5.059 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1131, allocations: 0 / 496.4 MB, free: 5.059 MB / 366.1 MB Notification: Performance of Templates: time 0.005489/0.1186, allocations: 2.703 MB / 499.1 MB, free: 2.371 MB / 366.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 -s gbode -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