Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001818/0.001818, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002125/0.002125, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.236/0.236, allocations: 46.12 MB / 344.2 MB, free: 11.61 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 82.06 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.142, allocations: 62.45 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004042/0.1461, allocations: 2.314 MB / 482.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.1478, allocations: 0.9036 MB / 483.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.148, allocations: 4 kB / 483.4 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.1482, allocations: 39.47 kB / 483.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002534/0.1485, allocations: 59.41 kB / 483.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.149, allocations: 187.6 kB / 483.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.1494, allocations: 387 kB / 484.1 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.1496, allocations: 124.2 kB / 484.2 MB, free: 1.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.1499, allocations: 151.4 kB / 484.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1501, allocations: 171 kB / 484.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.922e-05/0.1502, allocations: 36 kB / 484.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.1503, allocations: 52 kB / 484.6 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.275e-05/0.1504, allocations: 91.67 kB / 484.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1506, allocations: 179 kB / 484.9 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.1511, allocations: 402.9 kB / 485.3 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1511, allocations: 0 / 485.3 MB, free: 96 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1511, allocations: 0 / 485.3 MB, free: 96 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1511, allocations: 0 / 485.3 MB, free: 96 kB / 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.001178/0.1523, allocations: 0.6459 MB / 485.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.1523, allocations: 11.97 kB / 485.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.1524, allocations: 79.27 kB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004524/0.1529, allocations: 76.42 kB / 486.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.1535, allocations: 359.9 kB / 486.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1535, allocations: 29.03 kB / 486.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.171e-05/0.1536, allocations: 40.28 kB / 486.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.1541, allocations: 289.9 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.1542, allocations: 3.984 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.1542, allocations: 12 kB / 486.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.1542, allocations: 8 kB / 486.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.1547, allocations: 198.5 kB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.1562, allocations: 0.8698 MB / 487.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.1567, allocations: 206.9 kB / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/0.1569, allocations: 96.75 kB / 488.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.157, allocations: 8 kB / 488.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004365/0.1574, allocations: 223.2 kB / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/0.1574, allocations: 0 / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008724/0.1583, allocations: 373.7 kB / 488.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.1584, allocations: 67.34 kB / 488.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.1586, allocations: 259 kB / 489.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.437e-05/0.1587, allocations: 37.7 kB / 489.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.1589, allocations: 196.6 kB / 489.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.412e-05/0.1589, allocations: 90.7 kB / 489.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1591, allocations: 78.06 kB / 489.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1593, allocations: 342.8 kB / 489.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.1595, allocations: 96.69 kB / 489.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.1598, allocations: 228.4 kB / 490.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.1604, allocations: 352.7 kB / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.1604, allocations: 8 kB / 490.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00068/0.1611, allocations: 373.1 kB / 490.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.1611, allocations: 15.98 kB / 490.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.1611, allocations: 4 kB / 490.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/0.1611, allocations: 8 kB / 490.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.1614, allocations: 67.84 kB / 490.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.1615, allocations: 11.98 kB / 490.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001865/0.1617, allocations: 31.78 kB / 491 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.1617, allocations: 27.92 kB / 491 MB, free: 10 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.0002091/0.1619, allocations: 169.6 kB / 491.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.358e-05/0.162, allocations: 31.62 kB / 491.2 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007054/0.1627, allocations: 321.2 kB / 491.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1627, allocations: 4 kB / 491.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1627, allocations: 0 / 491.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.1627, allocations: 7.984 kB / 491.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.1637, allocations: 0.7323 MB / 492.2 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1638, allocations: 0 / 492.2 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.164, allocations: 51.91 kB / 492.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.164, allocations: 0 / 492.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.1641, allocations: 11.98 kB / 492.3 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.1641, allocations: 3.938 kB / 492.3 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1641, allocations: 4 kB / 492.3 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008978/0.165, allocations: 0.5227 MB / 492.8 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.1651, allocations: 104.7 kB / 492.9 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.134e-05/0.1651, allocations: 12.2 kB / 493 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.1653, allocations: 20.02 kB / 493 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.1654, allocations: 31.89 kB / 493 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.734e-05/0.1654, allocations: 11.98 kB / 493 MB, free: 7.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001829/0.1656, allocations: 193.9 kB / 493.2 MB, free: 7.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1656, allocations: 0 / 493.2 MB, free: 7.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003774/0.166, allocations: 67.84 kB / 493.3 MB, free: 7.613 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.001236/0.1672, allocations: 1.072 MB / 494.3 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.1679, allocations: 280.1 kB / 494.6 MB, free: 6.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1679, allocations: 0 / 494.6 MB, free: 6.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.1682, allocations: 132.3 kB / 494.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.1685, allocations: 40.8 kB / 494.8 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.1728, allocations: 3.269 MB / 498.1 MB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/0.1733, allocations: 0.7919 MB / 498.9 MB, free: 1.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001747/0.1735, allocations: 47.22 kB / 498.9 MB, free: 1.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.1737, allocations: 123.4 kB / 499 MB, free: 1.617 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1737, allocations: 0 / 499 MB, free: 1.617 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.2042, allocations: 5.865 MB / 0.493 GB, free: 11.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.062/8.266, allocations: 15.3 kB / 0.4931 GB, free: 11.79 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1)