Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_dev_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.007348/0.007348, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001648/0.001648, allocations: 198.1 kB / 16.68 MB, free: 5.977 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9781/0.9781, allocations: 135.6 MB / 426.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 63.89 kB / 0.5857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4184, allocations: 81.02 MB / 0.6648 GB, free: 7 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002683/0.4211, allocations: 1.426 MB / 0.6662 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008213/0.422, allocations: 430.8 kB / 0.6666 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.96e-05/0.422, allocations: 1.25 kB / 0.6666 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.666e-05/0.4221, allocations: 7.938 kB / 0.6666 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.09e-05/0.4222, allocations: 9.109 kB / 0.6667 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.4224, allocations: 27.84 kB / 0.6667 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.4225, allocations: 44.86 kB / 0.6667 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.4227, allocations: 16.53 kB / 0.6667 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.777e-05/0.4227, allocations: 15.16 kB / 0.6668 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.935e-05/0.4228, allocations: 22.34 kB / 0.6668 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.4228, allocations: 2.781 kB / 0.6668 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.4228, allocations: 7.125 kB / 0.6668 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.4229, allocations: 10.41 kB / 0.6668 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.4229, allocations: 26.22 kB / 0.6668 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.423, allocations: 46.38 kB / 0.6669 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.423, allocations: 1.5 kB / 0.6669 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.423, allocations: 0 / 0.6669 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.4231, allocations: 0 / 0.6669 GB, free: 5.391 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.0005442/0.4236, allocations: 397.2 kB / 0.6672 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.4237, allocations: 9 kB / 0.6673 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.958e-05/0.4237, allocations: 35.91 kB / 0.6673 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.4237, allocations: 4.312 kB / 0.6673 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.354e-05/0.4238, allocations: 179 kB / 0.6675 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.4238, allocations: 3.344 kB / 0.6675 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.273e-05/0.4239, allocations: 6.938 kB / 0.6675 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.424, allocations: 52.06 kB / 0.6675 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.424, allocations: 0.875 kB / 0.6675 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.424, allocations: 1.531 kB / 0.6675 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.424, allocations: 4 kB / 0.6675 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.188e-05/0.4241, allocations: 22.23 kB / 0.6675 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003111/0.4244, allocations: 264.3 kB / 0.6678 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.75e-05/0.4245, allocations: 41.12 kB / 0.6678 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.4245, allocations: 21.14 kB / 0.6679 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.4245, allocations: 5.188 kB / 0.6679 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.4247, allocations: 102.5 kB / 0.668 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.522e-06/0.4247, allocations: 1.656 kB / 0.668 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002711/0.425, allocations: 147.2 kB / 0.6681 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.4251, allocations: 80.05 kB / 0.6682 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.354e-05/0.4251, allocations: 112.3 kB / 0.6683 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.4252, allocations: 26.83 kB / 0.6683 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.4252, allocations: 85.2 kB / 0.6684 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.4252, allocations: 31.5 kB / 0.6684 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.4253, allocations: 21.62 kB / 0.6684 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.919e-05/0.4253, allocations: 325.5 kB / 0.6688 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.44e-05/0.4254, allocations: 11.69 kB / 0.6688 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.211e-05/0.4254, allocations: 39.06 kB / 0.6688 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.752e-05/0.4255, allocations: 121 kB / 0.6689 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4255, allocations: 0 / 0.6689 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001543/0.4257, allocations: 125.3 kB / 0.669 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.883e-05/0.4257, allocations: 34.77 kB / 0.6691 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4257, allocations: 0 / 0.6691 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4258, allocations: 5.453 kB / 0.6691 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.094e-05/0.4258, allocations: 7.875 kB / 0.6691 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.4258, allocations: 5.641 kB / 0.6691 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.146e-05/0.4259, allocations: 3.906 kB / 0.6691 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.4259, allocations: 7.75 kB / 0.6691 GB, free: 3.113 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.0001215/0.426, allocations: 155.2 kB / 0.6692 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.4261, allocations: 8.922 kB / 0.6693 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.4261, allocations: 8.375 kB / 0.6693 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.4261, allocations: 1.156 kB / 0.6693 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4261, allocations: 1.188 kB / 0.6693 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.4261, allocations: 0 / 0.6693 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.4265, allocations: 403.6 kB / 0.6697 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.4265, allocations: 4 kB / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.276e-06/0.4265, allocations: 2.25 kB / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4265, allocations: 0 / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.4265, allocations: 1.781 kB / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.4265, allocations: 1.781 kB / 0.6697 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4265, allocations: 7.953 kB / 0.6697 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.4268, allocations: 239.8 kB / 0.6699 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.4268, allocations: 79.23 kB / 0.67 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.4268, allocations: 10.38 kB / 0.67 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.883e-05/0.4269, allocations: 9.109 kB / 0.67 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.427, allocations: 15.67 kB / 0.67 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.427, allocations: 2.844 kB / 0.67 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.695e-05/0.427, allocations: 89.14 kB / 0.6701 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.427, allocations: 1 kB / 0.6701 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002313/0.4273, allocations: 13.41 kB / 0.6701 GB, free: 2.129 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.0004181/0.4277, allocations: 0.7625 MB / 0.6709 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001643/0.4279, allocations: 119.7 kB / 0.671 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4279, allocations: 0 / 0.671 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.935e-05/0.428, allocations: 88.77 kB / 0.6711 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.4283, allocations: 19.94 kB / 0.6711 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.4293, allocations: 1.423 MB / 0.6725 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.4297, allocations: 0.6876 MB / 0.6731 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.285e-05/0.4298, allocations: 10.86 kB / 0.6731 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.493e-05/0.4298, allocations: 14.78 kB / 0.6732 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.4298, allocations: 1.656 kB / 0.6732 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.4535, allocations: 1.886 MB / 0.675 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.856/8.309, allocations: 5.312 kB / 0.675 GB, free: 14.11 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)