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.00735/0.00735, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001795/0.001795, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.563/1.563, 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.7811/0.7811, allocations: 132.2 MB / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 75.19 kB / 0.5808 GB, free: 1.117 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1592, allocations: 80.19 MB / 0.6592 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.00253/0.1618, allocations: 1.412 MB / 0.6605 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008139/0.1626, allocations: 442.9 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.01e-05/0.1627, allocations: 3.938 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.738e-05/0.1627, allocations: 3.938 kB / 0.661 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.524e-05/0.1628, allocations: 19.86 kB / 0.661 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.163, allocations: 15.98 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.1631, allocations: 51.84 kB / 0.661 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.961e-05/0.1632, allocations: 4 kB / 0.6611 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.51e-05/0.1633, allocations: 31.84 kB / 0.6611 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.702e-05/0.1634, allocations: 23.86 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.853e-05/0.1634, allocations: 4 kB / 0.6611 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.371e-05/0.1634, allocations: 4 kB / 0.6611 GB, free: 12 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.821e-05/0.1634, allocations: 11.92 kB / 0.6611 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.339e-05/0.1635, allocations: 15.94 kB / 0.6611 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.1636, allocations: 48.03 kB / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1636, allocations: 0 / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.442e-06/0.1636, allocations: 0 / 0.6612 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.1636, allocations: 0 / 0.6612 GB, free: 11.93 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.0006278/0.1643, allocations: 397 kB / 0.6616 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1643, allocations: 12.02 kB / 0.6616 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.369e-05/0.1644, allocations: 38.69 kB / 0.6616 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.1644, allocations: 4.938 kB / 0.6616 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.1646, allocations: 180.3 kB / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.1646, allocations: 4.375 kB / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.1646, allocations: 384 / 0.6618 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.1647, allocations: 57.8 kB / 0.6618 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1647, allocations: 0 / 0.6618 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.1648, allocations: 4 kB / 0.6619 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1648, allocations: 4 kB / 0.6619 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.807e-05/0.1648, allocations: 15.98 kB / 0.6619 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.1652, allocations: 272.8 kB / 0.6621 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.803e-05/0.1653, allocations: 42.56 kB / 0.6622 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.901e-05/0.1654, allocations: 16.98 kB / 0.6622 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.1654, allocations: 4 kB / 0.6622 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002338/0.1656, allocations: 109.1 kB / 0.6623 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.1657, allocations: 0 / 0.6623 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0003143/0.166, allocations: 139.3 kB / 0.6624 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.853e-05/0.1661, allocations: 85.05 kB / 0.6625 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1662, allocations: 109.8 kB / 0.6626 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.1662, allocations: 25.7 kB / 0.6626 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.977e-05/0.1663, allocations: 96.38 kB / 0.6627 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.1663, allocations: 19.83 kB / 0.6627 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.1664, allocations: 29.7 kB / 0.6628 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1665, allocations: 318.7 kB / 0.6631 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.884e-05/0.1665, allocations: 19.98 kB / 0.6631 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.055e-05/0.1666, allocations: 34.56 kB / 0.6631 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.1667, allocations: 113.9 kB / 0.6632 GB, free: 9.539 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1667, allocations: 3.938 kB / 0.6632 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000168/0.1669, allocations: 131.3 kB / 0.6634 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.1669, allocations: 29.7 kB / 0.6634 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.167, allocations: 0 / 0.6634 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.167, allocations: 4 kB / 0.6634 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.621e-05/0.167, allocations: 4 kB / 0.6634 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.167, allocations: 0 / 0.6634 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.62e-05/0.1671, allocations: 12.05 kB / 0.6634 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1671, allocations: 8 kB / 0.6634 GB, free: 9.332 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.000114/0.1672, allocations: 153 kB / 0.6636 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.1673, allocations: 11.94 kB / 0.6636 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.1673, allocations: 12.36 kB / 0.6636 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1673, allocations: 0 / 0.6636 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1673, allocations: 0 / 0.6636 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1673, allocations: 4 kB / 0.6636 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.1678, allocations: 400.1 kB / 0.664 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1678, allocations: 0 / 0.664 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-06/0.1678, allocations: 4 kB / 0.664 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1678, allocations: 0 / 0.664 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1678, allocations: 4.047 kB / 0.664 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.1678, allocations: 8 kB / 0.664 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1678, allocations: 3.938 kB / 0.664 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.168, allocations: 225.1 kB / 0.6642 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.1681, allocations: 85.11 kB / 0.6643 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.1681, allocations: 4.094 kB / 0.6643 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1683, allocations: 15.92 kB / 0.6643 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.1683, allocations: 7.938 kB / 0.6643 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.1683, allocations: 3.984 kB / 0.6643 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.244e-05/0.1684, allocations: 87.83 kB / 0.6644 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1684, allocations: 0 / 0.6644 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002273/0.1686, allocations: 19.95 kB / 0.6644 GB, free: 8.184 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.0005406/0.1692, allocations: 0.7688 MB / 0.6652 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001881/0.1694, allocations: 111.3 kB / 0.6653 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1694, allocations: 3.938 kB / 0.6653 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.94e-05/0.1695, allocations: 87.7 kB / 0.6654 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.1698, allocations: 27.88 kB / 0.6654 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.1712, allocations: 1.424 MB / 0.6668 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.1715, allocations: 0.6846 MB / 0.6675 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.136e-05/0.1715, allocations: 7.781 kB / 0.6675 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.1716, allocations: 19.42 kB / 0.6675 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of SimCode: time 5.82e-07/0.1716, allocations: 4 kB / 0.6675 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.1962, allocations: 1.874 MB / 0.6693 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.338/8.534, allocations: 20.64 kB / 0.6693 GB, free: 3.086 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)