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: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009778/0.0009779, allocations: 101.7 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001185/0.001185, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.3 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2009/0.2009, allocations: 45.92 MB / 344.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.0002662, allocations: 11.94 kB / 418.2 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 63.46 MB / 481.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002407/0.1422, allocations: 1.901 MB / 483.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.1435, allocations: 0.8028 MB / 484.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.1437, allocations: 7.938 kB / 484.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.1438, allocations: 23.78 kB / 484.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001945/0.144, allocations: 43.59 kB / 484.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.1444, allocations: 115.8 kB / 484.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003758/0.1448, allocations: 335 kB / 484.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.145, allocations: 106.6 kB / 484.9 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.1452, allocations: 111.4 kB / 485.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.1455, allocations: 127.3 kB / 485.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.288e-05/0.1455, allocations: 12 kB / 485.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.143e-05/0.1456, allocations: 27.97 kB / 485.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.949e-05/0.1457, allocations: 55.7 kB / 485.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.095e-05/0.1457, allocations: 81.52 kB / 485.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.146, allocations: 287.5 kB / 485.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.146, allocations: 0 / 485.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1461, allocations: 0 / 485.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1461, allocations: 0 / 485.6 MB, free: 1.25 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.0009865/0.1471, allocations: 0.5874 MB / 486.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.1471, allocations: 8.031 kB / 486.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.1472, allocations: 75.09 kB / 486.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004453/0.1477, allocations: 91.39 kB / 486.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.1482, allocations: 338.9 kB / 486.7 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.1482, allocations: 28.66 kB / 486.8 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.1483, allocations: 32 kB / 486.8 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/0.1489, allocations: 290.1 kB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.1489, allocations: 7.906 kB / 487.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.149, allocations: 12 kB / 487.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.149, allocations: 8 kB / 487.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/0.1494, allocations: 214.4 kB / 487.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.1509, allocations: 0.8816 MB / 488.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003947/0.1513, allocations: 206.8 kB / 488.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.1515, allocations: 96.81 kB / 488.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.1515, allocations: 7.938 kB / 488.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004061/0.1519, allocations: 247.5 kB / 488.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.152, allocations: 0 / 488.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007893/0.1527, allocations: 385.2 kB / 489.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.1528, allocations: 59.39 kB / 489.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.1531, allocations: 266.6 kB / 489.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.1531, allocations: 33.7 kB / 489.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.1533, allocations: 188.7 kB / 489.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/0.1534, allocations: 94.61 kB / 489.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.1534, allocations: 12 kB / 489.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1535, allocations: 346.7 kB / 490.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.1538, allocations: 100.6 kB / 490.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.1541, allocations: 226.6 kB / 490.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.1543, allocations: 127.9 kB / 490.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.1543, allocations: 4 kB / 490.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006428/0.155, allocations: 380.9 kB / 490.9 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.155, allocations: 8 kB / 490.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.155, allocations: 4 kB / 490.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1551, allocations: 8 kB / 490.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.1554, allocations: 80.16 kB / 491 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.1554, allocations: 19.88 kB / 491 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.1556, allocations: 31.69 kB / 491.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.1556, allocations: 27.92 kB / 491.1 MB, free: 11.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,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.1558, allocations: 154.8 kB / 491.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.1558, allocations: 35.7 kB / 491.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006274/0.1565, allocations: 340.9 kB / 491.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1565, allocations: 4 kB / 491.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1565, allocations: 4 kB / 491.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.1565, allocations: 8.031 kB / 491.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009229/0.1574, allocations: 0.7363 MB / 492.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1575, allocations: 4 kB / 492.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.1577, allocations: 51.91 kB / 492.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1577, allocations: 0 / 492.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.1577, allocations: 8 kB / 492.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.1577, allocations: 3.984 kB / 492.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1578, allocations: 3.953 kB / 492.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008065/0.1586, allocations: 0.5384 MB / 493 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.06e-05/0.1586, allocations: 104.8 kB / 493.1 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.1587, allocations: 16.06 kB / 493.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.1589, allocations: 19.97 kB / 493.1 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.1589, allocations: 27.92 kB / 493.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.159, allocations: 11.98 kB / 493.1 MB, free: 9.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.1591, allocations: 186 kB / 493.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1591, allocations: 0 / 493.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.1595, allocations: 67.75 kB / 493.4 MB, free: 9.098 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001139/0.1606, allocations: 1.09 MB / 494.5 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000501/0.1612, allocations: 267.6 kB / 494.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1612, allocations: 4 kB / 494.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002397/0.1614, allocations: 137.2 kB / 494.9 MB, free: 7.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.1618, allocations: 35.36 kB / 494.9 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.1644, allocations: 1.955 MB / 496.9 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.1648, allocations: 0.7959 MB / 497.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001509/0.165, allocations: 47.17 kB / 497.7 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.1651, allocations: 123.4 kB / 497.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1652, allocations: 4 kB / 497.8 MB, free: 4.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.1812, allocations: 5.29 MB / 0.4913 GB, free: 15.3 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.1814, allocations: 177.2 kB / 0.4915 GB, free: 15.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.174, allocations: 0 / 0.4915 GB, free: 15.05 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat