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.00132/0.00132, 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.0013/0.0013, allocations: 197.9 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002532/0.002532, allocations: 287 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.071/1.071, allocations: 178.5 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002753/0.002753, allocations: 100.5 kB / 0.6065 GB, free: 24.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1482, allocations: 89.13 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002648/0.1509, allocations: 1.428 MB / 0.695 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007422/0.1516, allocations: 436.5 kB / 0.6954 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.402e-05/0.1517, allocations: 0 / 0.6954 GB, free: 2.367 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.337e-05/0.1517, allocations: 4.875 kB / 0.6954 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.786e-05/0.1518, allocations: 7.922 kB / 0.6954 GB, free: 2.355 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.1519, allocations: 20.56 kB / 0.6954 GB, free: 2.336 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.1521, allocations: 59.3 kB / 0.6955 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.884e-05/0.1522, allocations: 8 kB / 0.6955 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.603e-05/0.1522, allocations: 23.86 kB / 0.6955 GB, free: 2.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.1523, allocations: 15.92 kB / 0.6955 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.1523, allocations: 4 kB / 0.6955 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.269e-05/0.1523, allocations: 4 kB / 0.6955 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.1524, allocations: 15.91 kB / 0.6955 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.1524, allocations: 15.94 kB / 0.6956 GB, free: 2.195 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.75e-05/0.1525, allocations: 44.67 kB / 0.6956 GB, free: 2.152 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1525, allocations: 0 / 0.6956 GB, free: 2.152 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1525, allocations: 0.6562 kB / 0.6956 GB, free: 2.152 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.1525, allocations: 0 / 0.6956 GB, free: 2.152 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.0006199/0.1532, allocations: 398.7 kB / 0.696 GB, free: 1.711 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.1532, allocations: 12.03 kB / 0.696 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.621e-05/0.1532, allocations: 34.75 kB / 0.696 GB, free: 1.656 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.1533, allocations: 4.938 kB / 0.696 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.1534, allocations: 172.3 kB / 0.6962 GB, free: 1.445 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1535, allocations: 384 / 0.6962 GB, free: 1.445 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.1535, allocations: 4.375 kB / 0.6962 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.1536, allocations: 61.73 kB / 0.6963 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1536, allocations: 3.984 kB / 0.6963 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.1536, allocations: 3.938 kB / 0.6963 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1536, allocations: 0 / 0.6963 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.501e-05/0.1537, allocations: 23.98 kB / 0.6963 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004107/0.1541, allocations: 268.8 kB / 0.6966 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.557e-05/0.1542, allocations: 46.5 kB / 0.6966 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.71e-05/0.1543, allocations: 16.98 kB / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.1543, allocations: 0 / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.1545, allocations: 105.1 kB / 0.6967 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.1545, allocations: 0 / 0.6967 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002879/0.1548, allocations: 147.3 kB / 0.6969 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.1548, allocations: 77.11 kB / 0.6969 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.1549, allocations: 114.2 kB / 0.697 GB, free: 476 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.155, allocations: 25.7 kB / 0.6971 GB, free: 444 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.365e-05/0.155, allocations: 88.14 kB / 0.6971 GB, free: 352 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.1551, allocations: 15.66 kB / 0.6972 GB, free: 336 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.972e-05/0.1551, allocations: 37.7 kB / 0.6972 GB, free: 292 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1553, allocations: 318.8 kB / 0.6975 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.651e-05/0.1553, allocations: 15.98 kB / 0.6975 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.472e-05/0.1554, allocations: 42.44 kB / 0.6976 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.1555, allocations: 114 kB / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1555, allocations: 4 kB / 0.6977 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001791/0.1557, allocations: 123.3 kB / 0.6978 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.1558, allocations: 33.7 kB / 0.6978 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.1558, allocations: 4.062 kB / 0.6978 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1558, allocations: 4 kB / 0.6978 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.71e-05/0.1558, allocations: 3.938 kB / 0.6978 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.1558, allocations: 4 kB / 0.6978 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.881e-05/0.1559, allocations: 11.98 kB / 0.6978 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.1559, allocations: 4.062 kB / 0.6978 GB, free: 15.56 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.0001215/0.1561, allocations: 153.8 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.1561, allocations: 11.89 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.443e-05/0.1561, allocations: 8.375 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1561, allocations: 0 / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.1561, allocations: 3.938 kB / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1561, allocations: 0 / 0.698 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004368/0.1566, allocations: 396.2 kB / 0.6984 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1566, allocations: 4 kB / 0.6984 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.985e-06/0.1566, allocations: 0 / 0.6984 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1566, allocations: 4 kB / 0.6984 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.1566, allocations: 3.984 kB / 0.6984 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1566, allocations: 0 / 0.6984 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1566, allocations: 3.938 kB / 0.6984 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.1569, allocations: 233.1 kB / 0.6986 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.157, allocations: 89.02 kB / 0.6987 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.157, allocations: 0 / 0.6987 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1571, allocations: 15.98 kB / 0.6987 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.1571, allocations: 7.938 kB / 0.6987 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.1572, allocations: 7.984 kB / 0.6987 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.596e-05/0.1572, allocations: 83.28 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1572, allocations: 0 / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002405/0.1575, allocations: 16 kB / 0.6988 GB, free: 14.42 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.00056/0.158, allocations: 0.7649 MB / 0.6996 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.1583, allocations: 115.3 kB / 0.6997 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1583, allocations: 11.88 kB / 0.6997 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.804e-05/0.1584, allocations: 91.33 kB / 0.6998 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1587, allocations: 23.91 kB / 0.6998 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.1601, allocations: 1.415 MB / 0.7012 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1604, allocations: 0.6885 MB / 0.7019 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.605e-05/0.1605, allocations: 4 kB / 0.7019 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.1605, allocations: 19.44 kB / 0.7019 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1605, allocations: 0 / 0.7019 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.1831, allocations: 1.869 MB / 0.7037 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/7.957, allocations: 7.797 kB / 0.7037 GB, free: 9.332 MB / 0.4981 GB (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)