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.001318/0.001318, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 246.9 MB, free: 8.996 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2025/0.2025, allocations: 46.11 MB / 344.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 78.16 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1069, allocations: 62.45 MB / 479.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003486/0.1104, allocations: 2.367 MB / 482.3 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.112, allocations: 0.8725 MB / 483.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.1123, allocations: 7.938 kB / 483.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000167/0.1125, allocations: 27.72 kB / 483.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.1127, allocations: 51.58 kB / 483.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.1132, allocations: 163.8 kB / 483.4 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003967/0.1137, allocations: 355 kB / 483.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002445/0.1139, allocations: 124.2 kB / 483.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.1142, allocations: 143.3 kB / 484 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.1144, allocations: 155.2 kB / 484.2 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.1144, allocations: 16 kB / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.631e-05/0.1146, allocations: 32 kB / 484.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-05/0.1146, allocations: 79.67 kB / 484.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.1148, allocations: 151.1 kB / 484.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.1151, allocations: 295.6 kB / 484.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1151, allocations: 0 / 484.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1151, allocations: 0 / 484.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.1152, allocations: 0 / 484.7 MB, free: 0.8789 MB / 350.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.001296/0.1165, allocations: 0.6577 MB / 485.4 MB, free: 180 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1165, allocations: 8.875 kB / 485.4 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004846/0.117, allocations: 80.33 kB / 485.5 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.1176, allocations: 355.9 kB / 485.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.1176, allocations: 20.94 kB / 485.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.486e-05/0.1177, allocations: 36.36 kB / 485.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.1182, allocations: 269 kB / 486.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1182, allocations: 0 / 486.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.1183, allocations: 19.92 kB / 486.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.1183, allocations: 8 kB / 486.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.1187, allocations: 190.1 kB / 486.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.1201, allocations: 0.8344 MB / 487.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004277/0.1206, allocations: 206.8 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.1208, allocations: 96.81 kB / 487.5 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.1208, allocations: 7.938 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004118/0.1212, allocations: 235.6 kB / 487.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1213, allocations: 0 / 487.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008035/0.1221, allocations: 373.2 kB / 488.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.1221, allocations: 55.41 kB / 488.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.1224, allocations: 270.9 kB / 488.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.1224, allocations: 37.69 kB / 488.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1226, allocations: 176.6 kB / 488.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.855e-05/0.1227, allocations: 102.5 kB / 488.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1228, allocations: 70.06 kB / 488.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1229, allocations: 342.8 kB / 489.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.1231, allocations: 96.64 kB / 489.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.1234, allocations: 222.5 kB / 489.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005268/0.1239, allocations: 348.8 kB / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.124, allocations: 0 / 489.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006705/0.1246, allocations: 372.7 kB / 490.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1247, allocations: 8 kB / 490.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1247, allocations: 4 kB / 490.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1247, allocations: 8.469 kB / 490.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.125, allocations: 83.77 kB / 490.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.125, allocations: 12.03 kB / 490.3 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.1252, allocations: 43.61 kB / 490.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.1252, allocations: 20 kB / 490.3 MB, free: 10.95 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.00017/0.1254, allocations: 157.8 kB / 490.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.1255, allocations: 39.56 kB / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000648/0.1261, allocations: 328.3 kB / 490.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1262, allocations: 4 kB / 490.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1262, allocations: 0 / 490.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1262, allocations: 0 / 490.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.1271, allocations: 0.7207 MB / 491.6 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1271, allocations: 0 / 491.6 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002465/0.1274, allocations: 51.91 kB / 491.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.1274, allocations: 0 / 491.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.797e-05/0.1274, allocations: 11.98 kB / 491.6 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1274, allocations: 0 / 491.6 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1274, allocations: 0 / 491.6 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00086/0.1283, allocations: 0.5305 MB / 492.1 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.1284, allocations: 104.7 kB / 492.2 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.44e-05/0.1284, allocations: 12.06 kB / 492.3 MB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.1286, allocations: 11.98 kB / 492.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.85e-05/0.1287, allocations: 19.97 kB / 492.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.1287, allocations: 16.12 kB / 492.3 MB, free: 8.848 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001751/0.1289, allocations: 194 kB / 492.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1289, allocations: 0 / 492.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000373/0.1293, allocations: 71.69 kB / 492.6 MB, free: 8.586 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.0001216/0.1294, allocations: 123.2 kB / 492.7 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005289/0.1299, allocations: 267.9 kB / 492.9 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1299, allocations: 3.938 kB / 493 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.1302, allocations: 123.9 kB / 493.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.1306, allocations: 36.88 kB / 493.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.1317, allocations: 0.7843 MB / 493.9 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1321, allocations: 0.7958 MB / 494.7 MB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.1322, allocations: 35.61 kB / 494.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1322, allocations: 4 kB / 494.7 MB, free: 6.352 MB / 366.1 MB Notification: Performance of Templates: time 0.006028/0.1383, allocations: 3.847 MB / 498.6 MB, free: 2.508 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