Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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.OnDelay,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_trunk_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.001414/0.001413, allocations: 104.9 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.001671/0.001671, 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.545/1.545, allocations: 227.4 MB / 246.3 MB, free: 9.031 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2325/0.2325, allocations: 46.11 MB / 343.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 79.89 kB / 416.9 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1584, allocations: 62.45 MB / 479.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004399/0.1628, allocations: 1.97 MB / 481.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.165, allocations: 1.177 MB / 482.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.1652, allocations: 4 kB / 482.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000633/0.1658, allocations: 175.6 kB / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.1661, allocations: 143.6 kB / 482.8 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.1665, allocations: 147.3 kB / 483 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.1668, allocations: 271.3 kB / 483.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.1669, allocations: 21.69 kB / 483.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.1671, allocations: 111.5 kB / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.1672, allocations: 111.6 kB / 483.5 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.1673, allocations: 8 kB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.1674, allocations: 51.98 kB / 483.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.06e-05/0.1675, allocations: 59.75 kB / 483.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1676, allocations: 107.4 kB / 483.7 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.1679, allocations: 271.4 kB / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1679, allocations: 0 / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.1679, allocations: 0 / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1679, allocations: 0 / 484 MB, free: 0.9648 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0009779/0.1689, allocations: 0.6689 MB / 484.6 MB, free: 228 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.1689, allocations: 8.875 kB / 484.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.933e-05/0.169, allocations: 42.75 kB / 484.7 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.828e-05/0.1691, allocations: 36.55 kB / 484.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.1695, allocations: 279.6 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.721e-05/0.1696, allocations: 97.41 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.1696, allocations: 16 kB / 485.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003542/0.17, allocations: 160 kB / 485.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.17, allocations: 4 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.17, allocations: 8 kB / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.17, allocations: 0 / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.1703, allocations: 87.88 kB / 485.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008244/0.1711, allocations: 0.6102 MB / 486 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.1715, allocations: 187.9 kB / 486.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.1717, allocations: 94.53 kB / 486.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1717, allocations: 4 kB / 486.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004516/0.1721, allocations: 429.1 kB / 486.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.1722, allocations: 3.938 kB / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.000804/0.173, allocations: 450.4 kB / 487.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.1731, allocations: 213.6 kB / 487.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/0.1735, allocations: 330.5 kB / 487.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.1735, allocations: 33.7 kB / 487.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1736, allocations: 140.7 kB / 487.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.1737, allocations: 51.34 kB / 487.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.894e-05/0.1738, allocations: 49.7 kB / 487.9 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1739, allocations: 338.8 kB / 488.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.174, allocations: 51.97 kB / 488.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.1743, allocations: 146.7 kB / 488.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.1747, allocations: 354.9 kB / 488.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1747, allocations: 4 kB / 488.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005282/0.1753, allocations: 350.2 kB / 489.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.742e-05/0.1754, allocations: 93.09 kB / 489.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1754, allocations: 4 kB / 489.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.1754, allocations: 4 kB / 489.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1755, allocations: 27.86 kB / 489.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1755, allocations: 4 kB / 489.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001326/0.1757, allocations: 27.83 kB / 489.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1757, allocations: 8 kB / 489.3 MB, free: 11.05 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.0002532/0.176, allocations: 274 kB / 489.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/0.176, allocations: 35.66 kB / 489.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.339e-05/0.1761, allocations: 29.7 kB / 489.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/0.1761, allocations: 4 kB / 489.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.056e-06/0.1761, allocations: 0 / 489.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1762, allocations: 0 / 489.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.1765, allocations: 289.5 kB / 489.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1765, allocations: 3.938 kB / 489.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.969e-05/0.1765, allocations: 15.94 kB / 489.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1765, allocations: 4 kB / 489.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.1765, allocations: 11.98 kB / 490 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1766, allocations: 0 / 490 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1766, allocations: 0 / 490 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006747/0.1772, allocations: 439.5 kB / 490.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.058e-05/0.1773, allocations: 116.6 kB / 490.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.1774, allocations: 8 kB / 490.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1775, allocations: 23.92 kB / 490.5 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.51e-05/0.1776, allocations: 23.91 kB / 490.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.1777, allocations: 15.92 kB / 490.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002457/0.1779, allocations: 238 kB / 490.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1779, allocations: 0 / 490.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.1782, allocations: 71.98 kB / 490.9 MB, free: 9.352 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.001887/0.1801, allocations: 1.298 MB / 492.2 MB, free: 8.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005475/0.1807, allocations: 390 kB / 492.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1807, allocations: 0 / 492.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.1811, allocations: 346.1 kB / 492.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.1815, allocations: 51.78 kB / 492.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004324/0.1858, allocations: 2.898 MB / 495.8 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.1863, allocations: 0.7521 MB / 496.6 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00014/0.1865, allocations: 25.53 kB / 496.6 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.1866, allocations: 67.41 kB / 496.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1866, allocations: 0 / 496.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.2043, allocations: 5.74 MB / 0.4906 GB, free: 13.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/0.2045, allocations: 226 kB / 0.4909 GB, free: 13.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.157, allocations: 0 / 0.4909 GB, free: 13.45 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1)