Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, 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.00205/0.00205, 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.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2322/0.2322, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.002298/0.002299, allocations: 81.17 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1459, allocations: 62.44 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004835/0.1508, allocations: 1.917 MB / 482.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.1537, allocations: 1.177 MB / 483.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.154, allocations: 7.938 kB / 483.3 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.1551, allocations: 183.5 kB / 483.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000568/0.1557, allocations: 163.3 kB / 483.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.1563, allocations: 163.6 kB / 483.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003872/0.1567, allocations: 287.3 kB / 484.1 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1568, allocations: 41.64 kB / 484.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.157, allocations: 111.7 kB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.1572, allocations: 115.6 kB / 484.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.1573, allocations: 19.94 kB / 484.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1575, allocations: 67.91 kB / 484.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1576, allocations: 55.83 kB / 484.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.1578, allocations: 111.5 kB / 484.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.1582, allocations: 279.4 kB / 484.9 MB, free: 496 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1582, allocations: 0 / 484.9 MB, free: 496 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1582, allocations: 0 / 484.9 MB, free: 496 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.1582, allocations: 4 kB / 484.9 MB, free: 492 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001207/0.1594, allocations: 0.665 MB / 485.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1595, allocations: 11.97 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.995e-05/0.1596, allocations: 50.67 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.593e-05/0.1597, allocations: 32.56 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.1601, allocations: 271.7 kB / 485.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.1603, allocations: 101.4 kB / 486 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.1603, allocations: 20 kB / 486 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000347/0.1607, allocations: 160.5 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1607, allocations: 0 / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1607, allocations: 4 kB / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1607, allocations: 0 / 486.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.161, allocations: 91.88 kB / 486.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.162, allocations: 0.6102 MB / 486.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.1624, allocations: 179.9 kB / 487 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.1626, allocations: 86.55 kB / 487.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.1627, allocations: 8 kB / 487.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005413/0.1632, allocations: 429 kB / 487.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.533e-06/0.1632, allocations: 0 / 487.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008629/0.1641, allocations: 446.3 kB / 488 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.1642, allocations: 217.6 kB / 488.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003784/0.1646, allocations: 330.5 kB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.1647, allocations: 33.7 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1648, allocations: 132.7 kB / 488.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.863e-05/0.1648, allocations: 51.34 kB / 488.7 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-05/0.1649, allocations: 53.7 kB / 488.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.1651, allocations: 338.8 kB / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.1653, allocations: 59.97 kB / 489.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1655, allocations: 146.1 kB / 489.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.1659, allocations: 363.3 kB / 489.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.166, allocations: 4 kB / 489.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005441/0.1665, allocations: 346.1 kB / 490 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.1666, allocations: 99.75 kB / 490.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.1666, allocations: 3.938 kB / 490.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1667, allocations: 4 kB / 490.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1668, allocations: 19.98 kB / 490.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1668, allocations: 8.156 kB / 490.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.1669, allocations: 31.83 kB / 490.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.1669, allocations: 8 kB / 490.2 MB, free: 10.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002751/0.1672, allocations: 269.5 kB / 490.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.557e-05/0.1673, allocations: 31.84 kB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.487e-05/0.1674, allocations: 25.7 kB / 490.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.892e-06/0.1674, allocations: 7.984 kB / 490.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1674, allocations: 7.938 kB / 490.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.1674, allocations: 3.938 kB / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000306/0.1677, allocations: 289.5 kB / 490.8 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1677, allocations: 7.875 kB / 490.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.638e-05/0.1677, allocations: 4 kB / 490.8 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1678, allocations: 4 kB / 490.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.1678, allocations: 15.98 kB / 490.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1678, allocations: 0 / 490.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1678, allocations: 0 / 490.8 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006787/0.1685, allocations: 451.4 kB / 491.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.871e-05/0.1686, allocations: 112.6 kB / 491.4 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.1686, allocations: 12 kB / 491.4 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.1688, allocations: 19.98 kB / 491.4 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.1688, allocations: 19.97 kB / 491.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.1689, allocations: 8 kB / 491.5 MB, free: 9.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002519/0.1691, allocations: 245.9 kB / 491.7 MB, free: 8.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.1691, allocations: 4 kB / 491.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1695, allocations: 67.98 kB / 491.8 MB, free: 8.859 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.002432/0.1719, allocations: 1.287 MB / 493.1 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006241/0.1726, allocations: 398 kB / 493.4 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1726, allocations: 0 / 493.4 MB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.173, allocations: 346.5 kB / 493.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.1733, allocations: 55.34 kB / 493.8 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1772, allocations: 2.856 MB / 496.7 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.1776, allocations: 0.7518 MB / 497.4 MB, free: 3.004 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.1778, allocations: 30.22 kB / 497.5 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.1779, allocations: 67.41 kB / 497.5 MB, free: 2.91 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1779, allocations: 3.938 kB / 497.5 MB, free: 2.906 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.21, allocations: 6.144 MB / 0.4919 GB, free: 12.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.316, allocations: 6.672 kB / 0.4919 GB, free: 12.82 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1)