Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_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.001571/0.001571, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002038/0.002038, allocations: 291 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9309/0.9309, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 91.8 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1368, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002288/0.1392, allocations: 1.421 MB / 0.6817 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000617/0.1398, allocations: 431.8 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.476e-05/0.1398, allocations: 0 / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.621e-05/0.1399, allocations: 4.594 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.808e-05/0.14, allocations: 16.7 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001314/0.1401, allocations: 19.91 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.954e-05/0.1402, allocations: 52.58 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.82e-05/0.1403, allocations: 4.906 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.125e-05/0.1404, allocations: 25.86 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.687e-05/0.1404, allocations: 23.91 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.1404, allocations: 4 kB / 0.6822 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.1405, allocations: 4 kB / 0.6822 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.1405, allocations: 11.92 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.795e-05/0.1405, allocations: 19.94 kB / 0.6823 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.94e-05/0.1406, allocations: 43.77 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1406, allocations: 0 / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1406, allocations: 0 / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1406, allocations: 0 / 0.6823 GB, free: 14.55 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.0005222/0.1412, allocations: 393.1 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.1412, allocations: 8.031 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.08e-05/0.1413, allocations: 38.73 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.774e-05/0.1413, allocations: 8.844 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.1414, allocations: 176.2 kB / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.1414, allocations: 384 / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.1414, allocations: 4.375 kB / 0.6829 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.1415, allocations: 57.8 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1416, allocations: 0 / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.1416, allocations: 3.938 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.1416, allocations: 4 kB / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.678e-05/0.1416, allocations: 15.98 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.142, allocations: 272.8 kB / 0.6832 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.198e-05/0.142, allocations: 42.52 kB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.751e-05/0.1421, allocations: 20.97 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.1421, allocations: 0 / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000148/0.1423, allocations: 93.09 kB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.1423, allocations: 8 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002464/0.1425, allocations: 147.3 kB / 0.6835 GB, free: 13.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.1426, allocations: 81.09 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.988e-05/0.1427, allocations: 109.8 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1427, allocations: 29.7 kB / 0.6837 GB, free: 12.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.1427, allocations: 84.14 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.1427, allocations: 19.75 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.1428, allocations: 29.7 kB / 0.6839 GB, free: 12.69 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.1429, allocations: 322.7 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.184e-05/0.1429, allocations: 15.98 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.519e-05/0.143, allocations: 42.5 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.944e-05/0.1431, allocations: 106 kB / 0.6843 GB, free: 12.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.1431, allocations: 7.938 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001442/0.1432, allocations: 135.6 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.1433, allocations: 33.69 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1433, allocations: 3.984 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1433, allocations: 4 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.747e-05/0.1433, allocations: 3.984 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1433, allocations: 4 kB / 0.6845 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.1434, allocations: 7.984 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.1434, allocations: 4 kB / 0.6845 GB, free: 11.96 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 9.327e-05/0.1435, allocations: 157.9 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.1435, allocations: 7.906 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.1436, allocations: 8.359 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1436, allocations: 0 / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1436, allocations: 3.938 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1436, allocations: 0 / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.144, allocations: 400.1 kB / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.144, allocations: 0 / 0.6851 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.171e-05/0.144, allocations: 11.94 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.144, allocations: 4 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.144, allocations: 0 / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.144, allocations: 0 / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.144, allocations: 7.938 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.1442, allocations: 225.1 kB / 0.6853 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.1443, allocations: 85.05 kB / 0.6854 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1443, allocations: 4 kB / 0.6854 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1444, allocations: 15.98 kB / 0.6854 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.1444, allocations: 7.938 kB / 0.6854 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.1445, allocations: 0 / 0.6854 GB, free: 10.92 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.021e-05/0.1445, allocations: 91.27 kB / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1445, allocations: 0 / 0.6855 GB, free: 10.83 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002379/0.1448, allocations: 19.91 kB / 0.6855 GB, free: 10.81 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.00043/0.1452, allocations: 0.7687 MB / 0.6863 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.1454, allocations: 115.3 kB / 0.6864 GB, free: 9.887 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1454, allocations: 7.875 kB / 0.6864 GB, free: 9.879 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.076e-05/0.1455, allocations: 95.38 kB / 0.6865 GB, free: 9.773 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.1457, allocations: 20.11 kB / 0.6865 GB, free: 9.754 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.1469, allocations: 1.405 MB / 0.6879 GB, free: 8.254 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.1471, allocations: 0.6846 MB / 0.6885 GB, free: 7.543 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.646e-05/0.1471, allocations: 7.984 kB / 0.6886 GB, free: 7.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.1471, allocations: 19.44 kB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1471, allocations: 4 kB / 0.6886 GB, free: 7.512 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.1642, allocations: 1.867 MB / 0.6904 GB, free: 5.734 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.917/7.081, allocations: 17.59 kB / 0.6904 GB, free: 5.719 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)