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.005453/0.005453, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.00117/0.00117, allocations: 190.9 kB / 16.67 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.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7736/0.7736, allocations: 132.2 MB / 422.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 66.7 kB / 0.5808 GB, free: 24.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1408, allocations: 80.2 MB / 0.6591 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002645/0.1435, allocations: 1.428 MB / 0.6605 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007714/0.1443, allocations: 438.9 kB / 0.661 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.664e-05/0.1444, allocations: 0 / 0.661 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.1444, allocations: 7.922 kB / 0.661 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.427e-05/0.1445, allocations: 15.86 kB / 0.661 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.1447, allocations: 19.98 kB / 0.661 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.1449, allocations: 55.84 kB / 0.6611 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.586e-05/0.145, allocations: 4 kB / 0.6611 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.905e-05/0.1451, allocations: 23.86 kB / 0.6611 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.834e-05/0.1451, allocations: 23.91 kB / 0.6611 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.1452, allocations: 4 kB / 0.6611 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.15e-05/0.1452, allocations: 4 kB / 0.6611 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.034e-05/0.1452, allocations: 3.938 kB / 0.6611 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.558e-05/0.1453, allocations: 23.92 kB / 0.6611 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.1454, allocations: 44.05 kB / 0.6612 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1454, allocations: 7.938 kB / 0.6612 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.1454, allocations: 0 / 0.6612 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.1454, allocations: 0 / 0.6612 GB, free: 8.691 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.0006713/0.1461, allocations: 397 kB / 0.6616 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.1462, allocations: 8.031 kB / 0.6616 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.295e-05/0.1462, allocations: 38.73 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.272e-05/0.1462, allocations: 0.9375 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.1464, allocations: 176.3 kB / 0.6618 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1464, allocations: 8.375 kB / 0.6618 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.1464, allocations: 384 / 0.6618 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.1466, allocations: 57.8 kB / 0.6618 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1466, allocations: 0 / 0.6618 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1466, allocations: 3.938 kB / 0.6618 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1466, allocations: 4 kB / 0.6618 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.315e-05/0.1467, allocations: 12 kB / 0.6619 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004327/0.1471, allocations: 272.8 kB / 0.6621 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.389e-05/0.1472, allocations: 42.58 kB / 0.6622 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.829e-05/0.1472, allocations: 24.95 kB / 0.6622 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.1473, allocations: 0 / 0.6622 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002235/0.1475, allocations: 101 kB / 0.6623 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.1475, allocations: 0 / 0.6623 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0003/0.1478, allocations: 151.3 kB / 0.6624 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.1479, allocations: 89.09 kB / 0.6625 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.622e-05/0.148, allocations: 105.8 kB / 0.6626 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.148, allocations: 29.7 kB / 0.6626 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.1481, allocations: 88.09 kB / 0.6627 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.1481, allocations: 19.84 kB / 0.6627 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.1482, allocations: 29.7 kB / 0.6628 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1483, allocations: 314.8 kB / 0.6631 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.604e-05/0.1483, allocations: 15.98 kB / 0.6631 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.908e-05/0.1484, allocations: 42.56 kB / 0.6631 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.1485, allocations: 109.9 kB / 0.6632 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1485, allocations: 0 / 0.6632 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001761/0.1487, allocations: 135.2 kB / 0.6634 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/0.1487, allocations: 33.69 kB / 0.6634 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1487, allocations: 4.453 kB / 0.6634 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1488, allocations: 4 kB / 0.6634 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.564e-05/0.1488, allocations: 4 kB / 0.6634 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1488, allocations: 0 / 0.6634 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.728e-05/0.1489, allocations: 11.92 kB / 0.6634 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.1489, allocations: 4 kB / 0.6634 GB, free: 6.102 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.0001247/0.149, allocations: 152.4 kB / 0.6636 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.1491, allocations: 7.953 kB / 0.6636 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.113e-05/0.1491, allocations: 12.36 kB / 0.6636 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1491, allocations: 64 / 0.6636 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1491, allocations: 4 kB / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1491, allocations: 0 / 0.6636 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.1495, allocations: 404.1 kB / 0.664 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1495, allocations: 0 / 0.664 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.038e-05/0.1496, allocations: 8 kB / 0.664 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1496, allocations: 384 / 0.664 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.1496, allocations: 0 / 0.664 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1496, allocations: 0 / 0.664 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1496, allocations: 11.94 kB / 0.664 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/0.1498, allocations: 229.1 kB / 0.6642 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.1499, allocations: 85.09 kB / 0.6643 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.1499, allocations: 4 kB / 0.6643 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.15, allocations: 11.98 kB / 0.6643 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.1501, allocations: 7.938 kB / 0.6643 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.1501, allocations: 0 / 0.6643 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.382e-05/0.1501, allocations: 95.27 kB / 0.6644 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1501, allocations: 0 / 0.6644 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002298/0.1504, allocations: 19.95 kB / 0.6644 GB, free: 4.949 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.0004873/0.1509, allocations: 0.7586 MB / 0.6652 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001867/0.1511, allocations: 119.4 kB / 0.6653 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1511, allocations: 0 / 0.6653 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.381e-05/0.1512, allocations: 99.25 kB / 0.6654 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.1515, allocations: 22.88 kB / 0.6654 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.1528, allocations: 1.417 MB / 0.6668 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.153, allocations: 0.6968 MB / 0.6675 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.1531, allocations: 7.781 kB / 0.6675 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.1531, allocations: 19.42 kB / 0.6675 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1531, allocations: 0 / 0.6675 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.1717, allocations: 1.882 MB / 0.6693 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.114/7.286, allocations: 10.88 kB / 0.6693 GB, free: 15.84 MB / 0.5137 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)