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.001309/0.001309, allocations: 108.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 79.34 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1247, allocations: 62.44 MB / 479.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004924/0.1297, allocations: 2.363 MB / 481.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.1317, allocations: 0.8842 MB / 482.5 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003389/0.1321, allocations: 4 kB / 482.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.1323, allocations: 23.73 kB / 482.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004441/0.1329, allocations: 51.56 kB / 482.6 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006277/0.1335, allocations: 159.8 kB / 482.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006022/0.1341, allocations: 362.9 kB / 483.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/0.1344, allocations: 126.1 kB / 483.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.1348, allocations: 127.4 kB / 483.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.135, allocations: 159.1 kB / 483.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-05/0.1351, allocations: 20 kB / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.1352, allocations: 36 kB / 483.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.428e-05/0.1353, allocations: 71.67 kB / 483.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.1355, allocations: 159 kB / 483.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004708/0.136, allocations: 382.9 kB / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.136, allocations: 0 / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.136, allocations: 0 / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.136, allocations: 0 / 484.2 MB, free: 0.832 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.001338/0.1374, allocations: 0.6499 MB / 484.8 MB, free: 140 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1374, allocations: 12.88 kB / 484.8 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005007/0.1379, allocations: 84.27 kB / 484.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005684/0.1385, allocations: 355.8 kB / 485.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.1385, allocations: 28.94 kB / 485.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.231e-05/0.1386, allocations: 28.38 kB / 485.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/0.1392, allocations: 280.9 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1392, allocations: 4 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.1393, allocations: 8 kB / 485.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.1393, allocations: 8 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.1397, allocations: 186.1 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.1413, allocations: 0.8421 MB / 486.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1418, allocations: 205.5 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.1421, allocations: 96.81 kB / 486.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.847e-05/0.1421, allocations: 11.88 kB / 486.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004702/0.1426, allocations: 231.6 kB / 487.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.765e-06/0.1426, allocations: 0 / 487.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008968/0.1435, allocations: 369.2 kB / 487.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.1436, allocations: 63.34 kB / 487.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.1439, allocations: 274.9 kB / 487.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.144, allocations: 33.7 kB / 487.9 MB, free: 12.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.1441, allocations: 176.6 kB / 488.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.829e-05/0.1442, allocations: 102.5 kB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.1444, allocations: 74.06 kB / 488.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.1445, allocations: 342.8 kB / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002344/0.1448, allocations: 92.69 kB / 488.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.1451, allocations: 226.5 kB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.1457, allocations: 336.8 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1457, allocations: 0 / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006912/0.1464, allocations: 388.6 kB / 489.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1464, allocations: 6.812 kB / 489.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1464, allocations: 11.98 kB / 489.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.1465, allocations: 8 kB / 489.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002892/0.1467, allocations: 71.98 kB / 489.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.1468, allocations: 7.984 kB / 489.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.147, allocations: 39.62 kB / 489.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.147, allocations: 23.98 kB / 489.8 MB, free: 10.9 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.0001769/0.1472, allocations: 161.7 kB / 489.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.1473, allocations: 39.56 kB / 490 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006754/0.1479, allocations: 320.3 kB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.148, allocations: 4 kB / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.148, allocations: 0 / 490.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.148, allocations: 3.984 kB / 490.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.149, allocations: 0.7245 MB / 491 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.149, allocations: 0 / 491 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.1493, allocations: 47.91 kB / 491.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1493, allocations: 0 / 491.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.1494, allocations: 15.98 kB / 491.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1494, allocations: 4 kB / 491.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1494, allocations: 0 / 491.1 MB, free: 9.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008675/0.1503, allocations: 0.5189 MB / 491.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.202e-05/0.1503, allocations: 108.7 kB / 491.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.307e-05/0.1504, allocations: 11.98 kB / 491.7 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.1506, allocations: 8.125 kB / 491.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.421e-05/0.1507, allocations: 35.95 kB / 491.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.1507, allocations: 15.98 kB / 491.8 MB, free: 8.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.1509, allocations: 182 kB / 491.9 MB, free: 8.605 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.1509, allocations: 0 / 491.9 MB, free: 8.605 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.1513, allocations: 83.61 kB / 492 MB, free: 8.523 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.0001323/0.1514, allocations: 103.2 kB / 492.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000601/0.152, allocations: 271.5 kB / 492.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.152, allocations: 288 / 492.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002829/0.1523, allocations: 127.8 kB / 492.5 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004073/0.1527, allocations: 41.73 kB / 492.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.1541, allocations: 0.7549 MB / 493.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/0.1545, allocations: 0.7958 MB / 494.1 MB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.1547, allocations: 42.95 kB / 494.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.487e-05/0.1548, allocations: 35.42 kB / 494.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1548, allocations: 0 / 494.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of Templates: time 0.006214/0.161, allocations: 2.493 MB / 496.7 MB, free: 3.809 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/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