Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IBPSA_latest_IBPSA_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.001331/0.001331, allocations: 106.6 kB / 16.41 MB, free: 6.402 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.001261/0.001261, allocations: 194.4 kB / 17.34 MB, free: 5.691 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8046/0.8046, allocations: 126.7 MB / 417.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 68.52 kB / 0.5735 GB, free: 26.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1436, allocations: 78.86 MB / 0.6505 GB, free: 3.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.002612/0.1462, allocations: 1.412 MB / 0.6519 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007948/0.1471, allocations: 436.8 kB / 0.6523 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.267e-05/0.1471, allocations: 0 / 0.6523 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.1472, allocations: 3.938 kB / 0.6523 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.535e-05/0.1473, allocations: 15.84 kB / 0.6523 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001592/0.1474, allocations: 19.98 kB / 0.6523 GB, free: 1.766 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.1476, allocations: 59.84 kB / 0.6524 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.1477, allocations: 4 kB / 0.6524 GB, free: 1.703 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.183e-05/0.1477, allocations: 23.86 kB / 0.6524 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.212e-05/0.1478, allocations: 15.92 kB / 0.6524 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.1479, allocations: 4 kB / 0.6524 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.712e-05/0.1479, allocations: 4 kB / 0.6525 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.1479, allocations: 11.92 kB / 0.6525 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.501e-05/0.148, allocations: 27.92 kB / 0.6525 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.1481, allocations: 44.05 kB / 0.6525 GB, free: 1.574 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1481, allocations: 0 / 0.6525 GB, free: 1.574 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1481, allocations: 0 / 0.6525 GB, free: 1.574 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1481, allocations: 0 / 0.6525 GB, free: 1.574 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.0006881/0.1488, allocations: 393 kB / 0.6529 GB, free: 1.137 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1489, allocations: 11.97 kB / 0.6529 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.1489, allocations: 30.75 kB / 0.6529 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.149, allocations: 8.938 kB / 0.653 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.1491, allocations: 180.2 kB / 0.6531 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.1492, allocations: 8.312 kB / 0.6531 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.733e-05/0.1492, allocations: 8.375 kB / 0.6531 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.1493, allocations: 49.81 kB / 0.6532 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.1493, allocations: 0 / 0.6532 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1494, allocations: 3.984 kB / 0.6532 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1494, allocations: 4 kB / 0.6532 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.239e-05/0.1494, allocations: 19.94 kB / 0.6532 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004653/0.1499, allocations: 268.8 kB / 0.6535 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.15, allocations: 42.56 kB / 0.6535 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.13e-05/0.1501, allocations: 24.97 kB / 0.6535 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1501, allocations: 0 / 0.6535 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.1503, allocations: 101 kB / 0.6536 GB, free: 264 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.1503, allocations: 4 kB / 0.6536 GB, free: 260 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003082/0.1506, allocations: 139.4 kB / 0.6538 GB, free: 108 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.1507, allocations: 85.05 kB / 0.6539 GB, free: 4 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1508, allocations: 109.8 kB / 0.654 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.1508, allocations: 25.7 kB / 0.654 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.1509, allocations: 96.08 kB / 0.6541 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.43e-05/0.1509, allocations: 15.84 kB / 0.6541 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/0.151, allocations: 25.72 kB / 0.6541 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1512, allocations: 326.8 kB / 0.6544 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.468e-05/0.1512, allocations: 12 kB / 0.6544 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-05/0.1513, allocations: 42.5 kB / 0.6545 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.1514, allocations: 113.9 kB / 0.6546 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1514, allocations: 0 / 0.6546 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001741/0.1516, allocations: 127.3 kB / 0.6547 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.1516, allocations: 41.69 kB / 0.6547 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1517, allocations: 0 / 0.6547 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1517, allocations: 4 kB / 0.6548 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.985e-05/0.1517, allocations: 384 / 0.6548 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.1517, allocations: 4 kB / 0.6548 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.939e-05/0.1518, allocations: 4 kB / 0.6548 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.1518, allocations: 4 kB / 0.6548 GB, free: 14.99 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.0001269/0.1519, allocations: 163.4 kB / 0.6549 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.152, allocations: 7.953 kB / 0.6549 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.152, allocations: 8.375 kB / 0.6549 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.152, allocations: 0 / 0.6549 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.152, allocations: 3.984 kB / 0.6549 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.152, allocations: 3.984 kB / 0.6549 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.1525, allocations: 396.2 kB / 0.6553 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1525, allocations: 0 / 0.6553 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.467e-06/0.1525, allocations: 4 kB / 0.6553 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1525, allocations: 0 / 0.6553 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1525, allocations: 4 kB / 0.6553 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1525, allocations: 64 / 0.6553 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1525, allocations: 7.938 kB / 0.6553 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.1528, allocations: 237.6 kB / 0.6556 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.987e-05/0.1528, allocations: 85.06 kB / 0.6556 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.1529, allocations: 3.984 kB / 0.6556 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.932e-05/0.153, allocations: 8 kB / 0.6557 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.153, allocations: 19.92 kB / 0.6557 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.153, allocations: 0 / 0.6557 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.893e-05/0.1531, allocations: 95.33 kB / 0.6558 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1531, allocations: 0 / 0.6558 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002316/0.1534, allocations: 12 kB / 0.6558 GB, free: 13.83 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.0005885/0.1539, allocations: 0.7705 MB / 0.6565 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000194/0.1542, allocations: 119.3 kB / 0.6566 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1542, allocations: 0 / 0.6566 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.972e-05/0.1543, allocations: 83.39 kB / 0.6567 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.1545, allocations: 15.94 kB / 0.6567 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.156, allocations: 1.424 MB / 0.6581 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1563, allocations: 0.689 MB / 0.6588 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.021e-05/0.1564, allocations: 7.859 kB / 0.6588 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.161e-05/0.1564, allocations: 15.44 kB / 0.6588 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1564, allocations: 0 / 0.6588 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02255/0.179, allocations: 1.876 MB / 0.6607 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.146, allocations: 19.84 kB / 0.6607 GB, free: 8.719 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > IBPSA_latest_IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)