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.007313/0.007313, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001343/0.001343, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.029/1.029, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.89 kB / 0.5851 GB, free: 3.879 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4241, allocations: 80.92 MB / 0.6641 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.0022/0.4263, allocations: 1.431 MB / 0.6655 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006326/0.427, allocations: 430.1 kB / 0.6659 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.427, allocations: 1.438 kB / 0.6659 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.268e-05/0.4271, allocations: 3.938 kB / 0.6659 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.968e-05/0.4272, allocations: 16.98 kB / 0.666 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.4273, allocations: 16.02 kB / 0.666 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.4274, allocations: 47.86 kB / 0.666 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.568e-05/0.4275, allocations: 16.22 kB / 0.666 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.67e-05/0.4276, allocations: 24.22 kB / 0.6661 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.4276, allocations: 21.47 kB / 0.6661 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.4277, allocations: 4.438 kB / 0.6661 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.4277, allocations: 3.75 kB / 0.6661 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.2e-05/0.4277, allocations: 5.031 kB / 0.6661 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.064e-05/0.4278, allocations: 22.55 kB / 0.6661 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.4279, allocations: 48.16 kB / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4279, allocations: 0 / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4279, allocations: 1.094 kB / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.178e-06/0.4279, allocations: 0 / 0.6662 GB, free: 5.672 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.0004917/0.4284, allocations: 400.2 kB / 0.6665 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4284, allocations: 9.156 kB / 0.6665 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.794e-05/0.4285, allocations: 35.84 kB / 0.6666 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.631e-05/0.4285, allocations: 3.219 kB / 0.6666 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.411e-05/0.4286, allocations: 180 kB / 0.6668 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.4286, allocations: 1.688 kB / 0.6668 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.4286, allocations: 4.344 kB / 0.6668 GB, free: 5 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/0.4287, allocations: 56.56 kB / 0.6668 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.4287, allocations: 0 / 0.6668 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.4287, allocations: 1.156 kB / 0.6668 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4288, allocations: 0.9062 kB / 0.6668 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.204e-05/0.4288, allocations: 22.14 kB / 0.6668 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.4291, allocations: 272.3 kB / 0.6671 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.739e-05/0.4292, allocations: 41.09 kB / 0.6671 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.477e-05/0.4292, allocations: 21.8 kB / 0.6672 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.4293, allocations: 1.156 kB / 0.6672 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.4294, allocations: 102.6 kB / 0.6673 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.4294, allocations: 3.938 kB / 0.6673 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002629/0.4297, allocations: 141 kB / 0.6674 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.4298, allocations: 83.58 kB / 0.6675 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.556e-05/0.4298, allocations: 115.3 kB / 0.6676 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.4299, allocations: 30.52 kB / 0.6676 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.92e-05/0.4299, allocations: 82.83 kB / 0.6677 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.4299, allocations: 26.66 kB / 0.6677 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.43, allocations: 26.41 kB / 0.6677 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.956e-05/0.43, allocations: 324 kB / 0.6681 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.313e-05/0.43, allocations: 18.03 kB / 0.6681 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.868e-05/0.4301, allocations: 33.38 kB / 0.6681 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.158e-05/0.4302, allocations: 116.6 kB / 0.6682 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4302, allocations: 1.594 kB / 0.6682 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001361/0.4303, allocations: 124.2 kB / 0.6683 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.4304, allocations: 32.86 kB / 0.6684 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4304, allocations: 0 / 0.6684 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.4304, allocations: 2.25 kB / 0.6684 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.445e-05/0.4304, allocations: 10.73 kB / 0.6684 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.4305, allocations: 1.406 kB / 0.6684 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.428e-05/0.4305, allocations: 5.094 kB / 0.6684 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.4305, allocations: 6.906 kB / 0.6684 GB, free: 3.395 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 8.106e-05/0.4306, allocations: 160.7 kB / 0.6685 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.4306, allocations: 6.859 kB / 0.6685 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.4307, allocations: 9.703 kB / 0.6686 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.4307, allocations: 1.281 kB / 0.6686 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4307, allocations: 0 / 0.6686 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4307, allocations: 5.062 kB / 0.6686 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003067/0.431, allocations: 407.2 kB / 0.669 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.431, allocations: 5.375 kB / 0.669 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.185e-06/0.431, allocations: 1.469 kB / 0.669 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.431, allocations: 0 / 0.669 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.4311, allocations: 5.312 kB / 0.669 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.4311, allocations: 1.406 kB / 0.669 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4311, allocations: 3.938 kB / 0.669 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.4312, allocations: 232.6 kB / 0.6692 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.024e-05/0.4313, allocations: 79.3 kB / 0.6693 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.4313, allocations: 5.5 kB / 0.6693 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.4314, allocations: 9.516 kB / 0.6693 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.4315, allocations: 15.55 kB / 0.6693 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.4315, allocations: 3.875 kB / 0.6693 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.841e-05/0.4315, allocations: 88.3 kB / 0.6694 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4315, allocations: 1.125 kB / 0.6694 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002357/0.4318, allocations: 20.78 kB / 0.6694 GB, free: 2.402 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.0003191/0.4321, allocations: 0.7634 MB / 0.6701 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.4322, allocations: 116 kB / 0.6703 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.4322, allocations: 1.312 kB / 0.6703 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.658e-05/0.4323, allocations: 92.42 kB / 0.6703 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.4326, allocations: 18.62 kB / 0.6704 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009592/0.4336, allocations: 1.419 MB / 0.6718 GB, free: 148 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.4338, allocations: 0.6865 MB / 0.6724 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.788e-05/0.4339, allocations: 11.41 kB / 0.6724 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.923e-05/0.4339, allocations: 15.25 kB / 0.6724 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.4339, allocations: 0 / 0.6724 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01626/0.4502, allocations: 1.877 MB / 0.6743 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/8.08, allocations: 15.33 kB / 0.6743 GB, free: 14.38 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)