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.0009138/0.0009139, allocations: 95.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1845/0.1845, allocations: 46.18 MB / 345.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002591, allocations: 11.98 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09707, allocations: 63.56 MB / 483.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002219/0.09932, allocations: 1.989 MB / 485.7 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1006, allocations: 0.8648 MB / 486.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.1008, allocations: 11.94 kB / 486.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.619e-05/0.1009, allocations: 19.78 kB / 486.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.1011, allocations: 51.58 kB / 486.7 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.1014, allocations: 159.8 kB / 486.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.1017, allocations: 359 kB / 487.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.102, allocations: 126.1 kB / 487.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1022, allocations: 115.4 kB / 487.4 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.1023, allocations: 131.1 kB / 487.5 MB, free: 352 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/0.1024, allocations: 12 kB / 487.5 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.356e-05/0.1025, allocations: 31.98 kB / 487.6 MB, free: 308 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.1025, allocations: 59.69 kB / 487.6 MB, free: 248 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.1027, allocations: 168.8 kB / 487.8 MB, free: 72 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.1029, allocations: 287.5 kB / 488.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1029, allocations: 4 kB / 488.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.103, allocations: 0 / 488.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.103, allocations: 7.938 kB / 488.1 MB, free: 15.78 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.0009117/0.1039, allocations: 0.5798 MB / 488.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.1039, allocations: 8.875 kB / 488.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004498/0.1044, allocations: 88.42 kB / 488.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.1049, allocations: 355.9 kB / 489.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.1049, allocations: 32.92 kB / 489.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.105, allocations: 32.28 kB / 489.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005235/0.1055, allocations: 280.9 kB / 489.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1055, allocations: 0 / 489.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.1056, allocations: 12 kB / 489.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1056, allocations: 4 kB / 489.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004552/0.106, allocations: 210.1 kB / 489.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1074, allocations: 0.8461 MB / 490.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004135/0.1078, allocations: 210.8 kB / 490.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.108, allocations: 108.8 kB / 490.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.108, allocations: 7.922 kB / 490.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004143/0.1085, allocations: 231.7 kB / 491.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.703e-06/0.1085, allocations: 0 / 491.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008139/0.1093, allocations: 397.1 kB / 491.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1093, allocations: 59.41 kB / 491.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.1096, allocations: 267 kB / 491.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.1097, allocations: 33.7 kB / 491.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1098, allocations: 180.5 kB / 492 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.354e-05/0.1099, allocations: 98.55 kB / 492.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.1099, allocations: 45.69 kB / 492.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.11, allocations: 342.8 kB / 492.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.1103, allocations: 104.6 kB / 492.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.1106, allocations: 234.5 kB / 492.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005288/0.1111, allocations: 356.8 kB / 493.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1111, allocations: 0 / 493.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006637/0.1118, allocations: 389.1 kB / 493.5 MB, free: 10 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1118, allocations: 12 kB / 493.5 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.1118, allocations: 8 kB / 493.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1119, allocations: 8 kB / 493.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.1121, allocations: 75.78 kB / 493.6 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1122, allocations: 11.98 kB / 493.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.1124, allocations: 39.69 kB / 493.7 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.597e-05/0.1124, allocations: 19.98 kB / 493.7 MB, free: 9.828 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.0001565/0.1125, allocations: 165.7 kB / 493.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.1126, allocations: 31.78 kB / 493.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006487/0.1132, allocations: 340.2 kB / 494.2 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.1133, allocations: 7.938 kB / 494.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1133, allocations: 0 / 494.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1133, allocations: 3.984 kB / 494.2 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009171/0.1142, allocations: 0.7324 MB / 495 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1142, allocations: 0 / 495 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.1145, allocations: 55.91 kB / 495 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1145, allocations: 0 / 495 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.1145, allocations: 11.98 kB / 495 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1145, allocations: 0 / 495 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1145, allocations: 4 kB / 495 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008591/0.1154, allocations: 0.5423 MB / 495.6 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.1155, allocations: 108.6 kB / 495.7 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.541e-05/0.1155, allocations: 12.05 kB / 495.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.1157, allocations: 15.98 kB / 495.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.194e-05/0.1158, allocations: 23.97 kB / 495.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.1158, allocations: 15.98 kB / 495.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.116, allocations: 182 kB / 495.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.116, allocations: 4 kB / 495.9 MB, free: 7.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.1163, allocations: 75.77 kB / 496 MB, free: 7.406 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.0001098/0.1164, allocations: 103.2 kB / 496.1 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005235/0.117, allocations: 283.7 kB / 496.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.117, allocations: 0 / 496.4 MB, free: 7.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.1173, allocations: 140.8 kB / 496.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.1176, allocations: 49.02 kB / 496.6 MB, free: 6.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.1187, allocations: 0.7985 MB / 497.4 MB, free: 6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.119, allocations: 0.7919 MB / 498.2 MB, free: 5.176 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.517e-05/0.1191, allocations: 35.42 kB / 498.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1191, allocations: 0 / 498.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of Templates: time 0.005762/0.1249, allocations: 3.811 MB / 0.4902 GB, free: 1.34 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 -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