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.001334/0.001334, 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.001458/0.001458, 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.336/1.336, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2074/0.2074, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 76.72 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 62.44 MB / 481.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004155/0.1145, allocations: 2.309 MB / 483.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1161, allocations: 0.9035 MB / 484.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.1162, allocations: 4 kB / 484.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.1164, allocations: 35.53 kB / 484.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.1167, allocations: 71.33 kB / 484.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.1171, allocations: 175.7 kB / 484.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.1175, allocations: 390.9 kB / 485.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002621/0.1177, allocations: 132.1 kB / 485.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.118, allocations: 151.3 kB / 485.6 MB, free: 356 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.1182, allocations: 167.1 kB / 485.8 MB, free: 188 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.1183, allocations: 36 kB / 485.8 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.1184, allocations: 59.98 kB / 485.9 MB, free: 92 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.748e-05/0.1185, allocations: 83.75 kB / 485.9 MB, free: 8 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1187, allocations: 175.1 kB / 486.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004052/0.1191, allocations: 414.3 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1191, allocations: 0 / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1191, allocations: 4 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1191, allocations: 0 / 486.5 MB, free: 15.43 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.00106/0.1202, allocations: 0.6537 MB / 487.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1202, allocations: 8.031 kB / 487.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004382/0.1207, allocations: 80.33 kB / 487.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000506/0.1212, allocations: 363.8 kB / 487.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.1212, allocations: 24.94 kB / 487.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.421e-05/0.1213, allocations: 32.38 kB / 487.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.1218, allocations: 272.9 kB / 487.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1218, allocations: 0 / 487.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.1218, allocations: 15.98 kB / 488 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1219, allocations: 4 kB / 488 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003953/0.1223, allocations: 194.1 kB / 488.1 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.1235, allocations: 0.8265 MB / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003728/0.1239, allocations: 198.8 kB / 489.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.1241, allocations: 100.8 kB / 489.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.1242, allocations: 11.94 kB / 489.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003845/0.1245, allocations: 223.1 kB / 489.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.1246, allocations: 0 / 489.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007678/0.1253, allocations: 373.7 kB / 489.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.1254, allocations: 63.38 kB / 489.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.1256, allocations: 270.9 kB / 490.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.1257, allocations: 33.7 kB / 490.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1258, allocations: 180.6 kB / 490.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.048e-05/0.1259, allocations: 102.5 kB / 490.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.881e-05/0.126, allocations: 78.06 kB / 490.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1261, allocations: 342.8 kB / 490.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.1263, allocations: 88.7 kB / 491 MB, free: 10.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.1266, allocations: 230.5 kB / 491.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004811/0.1271, allocations: 348.8 kB / 491.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1271, allocations: 4 kB / 491.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006225/0.1277, allocations: 373.2 kB / 491.9 MB, free: 9.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.1278, allocations: 11.94 kB / 491.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.1278, allocations: 4 kB / 491.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.1278, allocations: 8 kB / 492 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.1281, allocations: 79.83 kB / 492 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.1281, allocations: 4 kB / 492 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.1283, allocations: 35.67 kB / 492.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1283, allocations: 20 kB / 492.1 MB, free: 9.5 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.0001792/0.1285, allocations: 165.7 kB / 492.2 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.1286, allocations: 35.56 kB / 492.3 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006167/0.1292, allocations: 321.1 kB / 492.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1292, allocations: 4 kB / 492.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1292, allocations: 0 / 492.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.1292, allocations: 3.984 kB / 492.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008996/0.1301, allocations: 0.7207 MB / 493.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1301, allocations: 0 / 493.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.1304, allocations: 55.89 kB / 493.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1304, allocations: 0 / 493.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.1304, allocations: 8 kB / 493.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1304, allocations: 4 kB / 493.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1305, allocations: 0 / 493.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/0.1312, allocations: 0.5266 MB / 493.9 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.547e-05/0.1313, allocations: 108.7 kB / 494 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.1314, allocations: 8.062 kB / 494 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.1315, allocations: 12.08 kB / 494 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.566e-05/0.1316, allocations: 31.91 kB / 494.1 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.1316, allocations: 15.98 kB / 494.1 MB, free: 7.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.1318, allocations: 190 kB / 494.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1318, allocations: 0 / 494.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.1321, allocations: 71.69 kB / 494.3 MB, free: 7.133 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.0001262/0.1323, allocations: 124.4 kB / 494.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005001/0.1328, allocations: 263.6 kB / 494.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1328, allocations: 0 / 494.7 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.133, allocations: 131.8 kB / 494.9 MB, free: 6.617 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.1334, allocations: 45.86 kB / 494.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009646/0.1344, allocations: 0.6218 MB / 495.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.1347, allocations: 0.7881 MB / 496.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.1348, allocations: 42.95 kB / 496.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.741e-05/0.1349, allocations: 31.42 kB / 496.4 MB, free: 5.035 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1349, allocations: 0 / 496.4 MB, free: 5.035 MB / 366.1 MB Notification: Performance of Templates: time 0.005676/0.1406, allocations: 2.707 MB / 499.1 MB, free: 2.348 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 cvode -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