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.001604/0.001604, allocations: 105.5 kB / 16.41 MB, free: 6.469 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.001841/0.001841, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7543/0.7543, allocations: 122.9 MB / 414.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 70.05 kB / 0.5679 GB, free: 28.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1314, allocations: 77.92 MB / 0.644 GB, free: 9.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.00234/0.1337, allocations: 1.412 MB / 0.6454 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006861/0.1344, allocations: 440 kB / 0.6458 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.1345, allocations: 0 / 0.6458 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.257e-05/0.1345, allocations: 3.938 kB / 0.6458 GB, free: 7.73 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.1346, allocations: 7.875 kB / 0.6458 GB, free: 7.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.1348, allocations: 23.97 kB / 0.6458 GB, free: 7.699 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.1349, allocations: 51.86 kB / 0.6459 GB, free: 7.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.345e-05/0.135, allocations: 7.984 kB / 0.6459 GB, free: 7.641 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.705e-05/0.135, allocations: 27.86 kB / 0.6459 GB, free: 7.613 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.76e-05/0.1351, allocations: 15.92 kB / 0.6459 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.1351, allocations: 4 kB / 0.646 GB, free: 7.594 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.047e-05/0.1351, allocations: 4 kB / 0.646 GB, free: 7.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.1352, allocations: 11.92 kB / 0.646 GB, free: 7.578 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.1352, allocations: 19.94 kB / 0.646 GB, free: 7.559 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.1353, allocations: 52.03 kB / 0.646 GB, free: 7.508 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1354, allocations: 3.938 kB / 0.646 GB, free: 7.504 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1354, allocations: 3.938 kB / 0.646 GB, free: 7.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1354, allocations: 0 / 0.646 GB, free: 7.5 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.0005834/0.136, allocations: 397 kB / 0.6464 GB, free: 7.059 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.136, allocations: 8.625 kB / 0.6464 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.136, allocations: 34.75 kB / 0.6465 GB, free: 7.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.821e-05/0.1361, allocations: 8.938 kB / 0.6465 GB, free: 7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1362, allocations: 172.3 kB / 0.6466 GB, free: 6.793 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.1362, allocations: 8.359 kB / 0.6466 GB, free: 6.785 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.1363, allocations: 4.375 kB / 0.6466 GB, free: 6.781 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.1364, allocations: 49.81 kB / 0.6467 GB, free: 6.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1364, allocations: 0 / 0.6467 GB, free: 6.727 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1364, allocations: 4 kB / 0.6467 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1364, allocations: 0 / 0.6467 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.311e-05/0.1365, allocations: 23.92 kB / 0.6467 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003731/0.1369, allocations: 272.8 kB / 0.647 GB, free: 6.383 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.215e-05/0.137, allocations: 38.56 kB / 0.647 GB, free: 6.336 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.889e-05/0.137, allocations: 28.97 kB / 0.647 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.137, allocations: 0 / 0.647 GB, free: 6.305 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001717/0.1372, allocations: 105 kB / 0.6471 GB, free: 6.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.1372, allocations: 0 / 0.6471 GB, free: 6.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002659/0.1375, allocations: 143.3 kB / 0.6473 GB, free: 6.031 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.1375, allocations: 81.11 kB / 0.6474 GB, free: 5.934 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.426e-05/0.1376, allocations: 113.8 kB / 0.6475 GB, free: 5.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.1377, allocations: 29.7 kB / 0.6475 GB, free: 5.777 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.929e-05/0.1377, allocations: 80.14 kB / 0.6476 GB, free: 5.695 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.1377, allocations: 23.91 kB / 0.6476 GB, free: 5.672 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.1378, allocations: 25.7 kB / 0.6476 GB, free: 5.641 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1379, allocations: 326.8 kB / 0.6479 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.269e-05/0.138, allocations: 16 kB / 0.6479 GB, free: 5.297 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.613e-05/0.138, allocations: 38.84 kB / 0.648 GB, free: 5.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.1381, allocations: 114.3 kB / 0.6481 GB, free: 5.117 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1381, allocations: 3.984 kB / 0.6481 GB, free: 5.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001536/0.1383, allocations: 131.3 kB / 0.6482 GB, free: 4.973 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.1383, allocations: 39.67 kB / 0.6483 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1383, allocations: 0 / 0.6483 GB, free: 4.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1384, allocations: 4 kB / 0.6483 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.906e-05/0.1384, allocations: 0 / 0.6483 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.1384, allocations: 4 kB / 0.6483 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.66e-05/0.1385, allocations: 7.984 kB / 0.6483 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.1385, allocations: 4 kB / 0.6483 GB, free: 4.91 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.0001017/0.1386, allocations: 162.7 kB / 0.6484 GB, free: 4.738 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.1386, allocations: 7.984 kB / 0.6484 GB, free: 4.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.1387, allocations: 8.375 kB / 0.6484 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1387, allocations: 0 / 0.6484 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1387, allocations: 0 / 0.6484 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1387, allocations: 0 / 0.6484 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003852/0.1391, allocations: 400.1 kB / 0.6488 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1391, allocations: 0 / 0.6488 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.425e-06/0.1391, allocations: 64 / 0.6488 GB, free: 4.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1391, allocations: 8 kB / 0.6488 GB, free: 4.254 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.1391, allocations: 7.984 kB / 0.6488 GB, free: 4.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1391, allocations: 4 kB / 0.6489 GB, free: 4.242 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1391, allocations: 3.938 kB / 0.6489 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.1394, allocations: 229.1 kB / 0.6491 GB, free: 3.992 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.1394, allocations: 85.06 kB / 0.6492 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.1394, allocations: 0 / 0.6492 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.1396, allocations: 15.98 kB / 0.6492 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.1396, allocations: 7.922 kB / 0.6492 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.1396, allocations: 8 kB / 0.6492 GB, free: 3.859 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.334e-05/0.1397, allocations: 87.28 kB / 0.6493 GB, free: 3.773 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1397, allocations: 0 / 0.6493 GB, free: 3.773 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002397/0.1399, allocations: 12 kB / 0.6493 GB, free: 3.762 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.0004708/0.1404, allocations: 0.7726 MB / 0.65 GB, free: 2.957 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.1406, allocations: 115.3 kB / 0.6501 GB, free: 2.832 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1406, allocations: 0 / 0.6501 GB, free: 2.832 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.176e-05/0.1407, allocations: 95.27 kB / 0.6502 GB, free: 2.727 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.141, allocations: 15.92 kB / 0.6502 GB, free: 2.711 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1422, allocations: 1.42 MB / 0.6516 GB, free: 1.191 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/0.1425, allocations: 0.686 MB / 0.6523 GB, free: 492 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.803e-05/0.1425, allocations: 7.984 kB / 0.6523 GB, free: 484 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.1426, allocations: 15.44 kB / 0.6523 GB, free: 472 kB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1426, allocations: 0 / 0.6523 GB, free: 472 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01665/0.1592, allocations: 1.883 MB / 0.6542 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/7.555, allocations: 11.86 kB / 0.6542 GB, free: 14.64 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)