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.001434/0.001435, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7409/0.7409, allocations: 132.2 MB / 422.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001442, allocations: 59.91 kB / 0.5019 GB, free: 8.664 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1662, allocations: 80.19 MB / 0.5802 GB, free: 8.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002938/0.1692, allocations: 1.425 MB / 0.5816 GB, free: 7.246 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008155/0.17, allocations: 428.7 kB / 0.582 GB, free: 6.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.491e-05/0.1701, allocations: 4 kB / 0.582 GB, free: 6.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.1e-05/0.1701, allocations: 3.938 kB / 0.582 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.335e-05/0.1702, allocations: 15.91 kB / 0.582 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.1704, allocations: 23.92 kB / 0.582 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.1706, allocations: 55.73 kB / 0.5821 GB, free: 6.723 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1707, allocations: 7.984 kB / 0.5821 GB, free: 6.715 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.503e-05/0.1708, allocations: 23.86 kB / 0.5821 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.06e-05/0.1708, allocations: 19.92 kB / 0.5821 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.1709, allocations: 4 kB / 0.5821 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.1709, allocations: 0 / 0.5821 GB, free: 6.668 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.679e-05/0.1709, allocations: 15.98 kB / 0.5821 GB, free: 6.652 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.212e-05/0.171, allocations: 23.88 kB / 0.5822 GB, free: 6.629 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1711, allocations: 36.16 kB / 0.5822 GB, free: 6.594 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1711, allocations: 0 / 0.5822 GB, free: 6.594 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1711, allocations: 0 / 0.5822 GB, free: 6.594 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1711, allocations: 4 kB / 0.5822 GB, free: 6.59 MB / 494.1 MB 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.000642/0.1718, allocations: 397 kB / 0.5826 GB, free: 6.148 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1718, allocations: 16.03 kB / 0.5826 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.031e-05/0.1719, allocations: 30.75 kB / 0.5826 GB, free: 6.094 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.1719, allocations: 4.938 kB / 0.5826 GB, free: 6.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.1721, allocations: 168.2 kB / 0.5828 GB, free: 5.887 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1721, allocations: 16.3 kB / 0.5828 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.1721, allocations: 4.375 kB / 0.5828 GB, free: 5.867 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.1722, allocations: 45.81 kB / 0.5829 GB, free: 5.816 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1723, allocations: 7.938 kB / 0.5829 GB, free: 5.809 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1723, allocations: 7.984 kB / 0.5829 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1723, allocations: 0 / 0.5829 GB, free: 5.801 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.683e-05/0.1724, allocations: 19.98 kB / 0.5829 GB, free: 5.781 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004206/0.1728, allocations: 264.8 kB / 0.5831 GB, free: 5.473 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.51e-05/0.1729, allocations: 46.5 kB / 0.5832 GB, free: 5.418 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.785e-05/0.1729, allocations: 20.98 kB / 0.5832 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.173, allocations: 0 / 0.5832 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.1732, allocations: 109.1 kB / 0.5833 GB, free: 5.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.1732, allocations: 0 / 0.5833 GB, free: 5.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002885/0.1735, allocations: 139.2 kB / 0.5834 GB, free: 5.121 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.1736, allocations: 85.39 kB / 0.5835 GB, free: 5.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.091e-05/0.1737, allocations: 105.8 kB / 0.5836 GB, free: 4.906 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1737, allocations: 33.7 kB / 0.5837 GB, free: 4.867 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.1737, allocations: 84.08 kB / 0.5837 GB, free: 4.781 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.1738, allocations: 23.7 kB / 0.5838 GB, free: 4.758 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.675e-05/0.1738, allocations: 25.72 kB / 0.5838 GB, free: 4.727 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.1739, allocations: 322.8 kB / 0.5841 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.433e-05/0.174, allocations: 16 kB / 0.5841 GB, free: 4.387 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.602e-05/0.174, allocations: 42.5 kB / 0.5842 GB, free: 4.336 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.817e-05/0.1741, allocations: 110 kB / 0.5843 GB, free: 4.207 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.1741, allocations: 4 kB / 0.5843 GB, free: 4.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001554/0.1743, allocations: 123.3 kB / 0.5844 GB, free: 4.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.1743, allocations: 36.2 kB / 0.5844 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1744, allocations: 0 / 0.5844 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1744, allocations: 0 / 0.5844 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.894e-05/0.1744, allocations: 7.938 kB / 0.5844 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.1744, allocations: 3.984 kB / 0.5844 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.971e-05/0.1745, allocations: 15.91 kB / 0.5844 GB, free: 4.004 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.1745, allocations: 4 kB / 0.5844 GB, free: 4 MB / 494.1 MB 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.0001086/0.1746, allocations: 157.1 kB / 0.5846 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.731e-05/0.1747, allocations: 8 kB / 0.5846 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.1747, allocations: 4.375 kB / 0.5846 GB, free: 3.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1747, allocations: 7.938 kB / 0.5846 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1747, allocations: 0 / 0.5846 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1747, allocations: 0 / 0.5846 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.1751, allocations: 404 kB / 0.585 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1751, allocations: 0 / 0.585 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.237e-05/0.1752, allocations: 7.984 kB / 0.585 GB, free: 3.348 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1752, allocations: 3.938 kB / 0.585 GB, free: 3.344 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.1752, allocations: 8 kB / 0.585 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1752, allocations: 0 / 0.585 GB, free: 3.336 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1752, allocations: 3.938 kB / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.1754, allocations: 225.3 kB / 0.5852 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.1755, allocations: 81.02 kB / 0.5853 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.1755, allocations: 4 kB / 0.5853 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.1756, allocations: 15.98 kB / 0.5853 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.8e-05/0.1757, allocations: 15.86 kB / 0.5853 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.1757, allocations: 4 kB / 0.5854 GB, free: 2.953 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.931e-05/0.1758, allocations: 83.83 kB / 0.5854 GB, free: 2.871 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1758, allocations: 0 / 0.5854 GB, free: 2.871 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000241/0.176, allocations: 16 kB / 0.5854 GB, free: 2.855 MB / 494.1 MB 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.0005351/0.1766, allocations: 0.7649 MB / 0.5862 GB, free: 2.059 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002034/0.1768, allocations: 119.3 kB / 0.5863 GB, free: 1.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1768, allocations: 0 / 0.5863 GB, free: 1.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.524e-05/0.1769, allocations: 87.72 kB / 0.5864 GB, free: 1.832 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.1772, allocations: 23.91 kB / 0.5864 GB, free: 1.812 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.1786, allocations: 1.42 MB / 0.5878 GB, free: 296 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.1789, allocations: 0.6894 MB / 0.5885 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.463e-05/0.1789, allocations: 7.984 kB / 0.5885 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.179, allocations: 23.44 kB / 0.5885 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.179, allocations: 288 / 0.5885 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/0.1989, allocations: 1.843 MB / 0.5903 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.139/7.338, allocations: 7.281 kB / 0.5903 GB, free: 13.78 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)