Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005314/0.005314, allocations: 96.94 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 192 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8177/0.8177, allocations: 132.2 MB / 422.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 70.22 kB / 0.5808 GB, free: 1.137 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1654, allocations: 80.21 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002572/0.1681, allocations: 1.408 MB / 0.6605 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007468/0.1688, allocations: 442.9 kB / 0.661 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.105e-05/0.1689, allocations: 7.938 kB / 0.661 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.979e-05/0.1689, allocations: 3.984 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.803e-05/0.169, allocations: 11.88 kB / 0.661 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.1692, allocations: 19.97 kB / 0.661 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.1693, allocations: 55.78 kB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.949e-05/0.1694, allocations: 4 kB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.42e-05/0.1695, allocations: 31.86 kB / 0.6611 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.374e-05/0.1696, allocations: 19.92 kB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.889e-05/0.1696, allocations: 0 / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.284e-05/0.1696, allocations: 4 kB / 0.6611 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.571e-05/0.1697, allocations: 11.94 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.69e-05/0.1697, allocations: 19.91 kB / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.1698, allocations: 47.98 kB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1699, allocations: 0 / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.834e-06/0.1699, allocations: 4 kB / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.1699, allocations: 0 / 0.6612 GB, free: 11.94 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006828/0.1706, allocations: 393 kB / 0.6616 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1706, allocations: 12.03 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.1707, allocations: 30.75 kB / 0.6616 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.1707, allocations: 8.922 kB / 0.6616 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.1709, allocations: 172.3 kB / 0.6618 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1709, allocations: 4.375 kB / 0.6618 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.1709, allocations: 4.375 kB / 0.6618 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.171, allocations: 61.78 kB / 0.6618 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1711, allocations: 4 kB / 0.6618 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.1711, allocations: 3.938 kB / 0.6619 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1711, allocations: 0 / 0.6619 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.086e-05/0.1711, allocations: 16 kB / 0.6619 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004094/0.1716, allocations: 272.8 kB / 0.6621 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.846e-05/0.1717, allocations: 42.56 kB / 0.6622 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.751e-05/0.1717, allocations: 20.97 kB / 0.6622 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.1717, allocations: 4 kB / 0.6622 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/0.1719, allocations: 101 kB / 0.6623 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 6.603e-06/0.1719, allocations: 0 / 0.6623 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002907/0.1722, allocations: 143.3 kB / 0.6624 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.63e-05/0.1723, allocations: 85.38 kB / 0.6625 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.503e-05/0.1724, allocations: 113.9 kB / 0.6626 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.1724, allocations: 33.69 kB / 0.6626 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.734e-05/0.1725, allocations: 96.03 kB / 0.6627 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.1725, allocations: 15.84 kB / 0.6628 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.502e-05/0.1726, allocations: 29.7 kB / 0.6628 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1727, allocations: 318.8 kB / 0.6631 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.618e-05/0.1728, allocations: 19.98 kB / 0.6631 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.964e-05/0.1728, allocations: 30.58 kB / 0.6631 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.1729, allocations: 113.9 kB / 0.6632 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.173, allocations: 3.938 kB / 0.6632 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001635/0.1731, allocations: 127.3 kB / 0.6634 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.1732, allocations: 37.69 kB / 0.6634 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1732, allocations: 0 / 0.6634 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1732, allocations: 0 / 0.6634 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.23e-05/0.1732, allocations: 4 kB / 0.6634 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.1732, allocations: 64 / 0.6634 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.085e-05/0.1733, allocations: 15.92 kB / 0.6634 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.1733, allocations: 8 kB / 0.6634 GB, free: 9.34 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001209/0.1735, allocations: 153 kB / 0.6636 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.1735, allocations: 7.953 kB / 0.6636 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.1735, allocations: 8.375 kB / 0.6636 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1735, allocations: 4 kB / 0.6636 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1735, allocations: 3.984 kB / 0.6636 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.1735, allocations: 0 / 0.6636 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004113/0.174, allocations: 400.2 kB / 0.664 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.174, allocations: 0 / 0.664 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-06/0.174, allocations: 0 / 0.664 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.174, allocations: 0 / 0.664 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.174, allocations: 4 kB / 0.664 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.174, allocations: 0 / 0.664 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.174, allocations: 3.938 kB / 0.664 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.1742, allocations: 241.1 kB / 0.6642 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.39e-05/0.1743, allocations: 81.09 kB / 0.6643 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.1743, allocations: 8 kB / 0.6643 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.675e-05/0.1744, allocations: 8.062 kB / 0.6643 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.1745, allocations: 11.92 kB / 0.6643 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.1745, allocations: 4 kB / 0.6643 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.433e-05/0.1746, allocations: 87.27 kB / 0.6644 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1746, allocations: 0 / 0.6644 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002272/0.1748, allocations: 23.95 kB / 0.6644 GB, free: 8.191 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.000544/0.1753, allocations: 0.7591 MB / 0.6652 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001907/0.1755, allocations: 115.3 kB / 0.6653 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1756, allocations: 3.938 kB / 0.6653 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.266e-05/0.1757, allocations: 95.33 kB / 0.6654 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.1759, allocations: 20.06 kB / 0.6654 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.1773, allocations: 1.424 MB / 0.6668 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1776, allocations: 0.6846 MB / 0.6675 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.974e-05/0.1777, allocations: 7.781 kB / 0.6675 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.1777, allocations: 19.44 kB / 0.6675 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1777, allocations: 288 / 0.6675 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02323/0.201, allocations: 1.888 MB / 0.6693 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.62, allocations: 12.11 kB / 0.6693 GB, free: 3.098 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)