Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_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.005331/0.005331, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001303/0.001303, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.045/1.045, allocations: 143.3 MB / 433.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.89 kB / 0.5953 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3558, allocations: 82.02 MB / 0.6754 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.002097/0.358, allocations: 1.423 MB / 0.6768 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0007293/0.3587, allocations: 433.1 kB / 0.6772 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.588e-05/0.3588, allocations: 1.062 kB / 0.6772 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.424e-05/0.3588, allocations: 3.938 kB / 0.6772 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 8.275e-05/0.3589, allocations: 20.97 kB / 0.6772 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001329/0.359, allocations: 15.83 kB / 0.6772 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.3592, allocations: 56.3 kB / 0.6773 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 8.328e-05/0.3592, allocations: 12.55 kB / 0.6773 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 5.367e-05/0.3593, allocations: 20.41 kB / 0.6773 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.825e-05/0.3594, allocations: 29.33 kB / 0.6773 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.3594, allocations: 3.5 kB / 0.6773 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 1.218e-05/0.3594, allocations: 3.562 kB / 0.6773 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.3594, allocations: 1.156 kB / 0.6773 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.3595, allocations: 26.48 kB / 0.6774 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.3596, allocations: 42.84 kB / 0.6774 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3596, allocations: 1.125 kB / 0.6774 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3596, allocations: 0 / 0.6774 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.3596, allocations: 0 / 0.6774 GB, free: 15.43 MB / 0.5137 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.0006166/0.3602, allocations: 400.3 kB / 0.6778 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3603, allocations: 10.19 kB / 0.6778 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.3603, allocations: 31.94 kB / 0.6778 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.574e-05/0.3604, allocations: 4.281 kB / 0.6778 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.3605, allocations: 182.7 kB / 0.678 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.3605, allocations: 6.688 kB / 0.678 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.3606, allocations: 2.656 kB / 0.678 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.3607, allocations: 53.38 kB / 0.6781 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.3607, allocations: 5.266 kB / 0.6781 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.3607, allocations: 3.984 kB / 0.6781 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3607, allocations: 1.156 kB / 0.6781 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.325e-05/0.3608, allocations: 17.72 kB / 0.6781 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004123/0.3612, allocations: 273.4 kB / 0.6783 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 9.07e-05/0.3613, allocations: 40.59 kB / 0.6784 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.42e-05/0.3614, allocations: 21.78 kB / 0.6784 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.3614, allocations: 1.125 kB / 0.6784 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.3616, allocations: 102.6 kB / 0.6785 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.3616, allocations: 0 / 0.6785 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=9): time 0.0002827/0.3619, allocations: 152.5 kB / 0.6786 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.274e-05/0.3619, allocations: 79.52 kB / 0.6787 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.258e-05/0.362, allocations: 111.9 kB / 0.6788 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3621, allocations: 30.83 kB / 0.6789 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.3621, allocations: 85.28 kB / 0.6789 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.3622, allocations: 16.25 kB / 0.679 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.556e-05/0.3622, allocations: 25.5 kB / 0.679 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.3624, allocations: 321.3 kB / 0.6793 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.911e-05/0.3624, allocations: 24.27 kB / 0.6793 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.111e-05/0.3625, allocations: 29.7 kB / 0.6793 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.3626, allocations: 118.4 kB / 0.6795 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.3626, allocations: 0 / 0.6795 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001644/0.3628, allocations: 129 kB / 0.6796 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.3628, allocations: 40.22 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3628, allocations: 1 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3628, allocations: 1 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.869e-05/0.3629, allocations: 3.281 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.3629, allocations: 1.156 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.363, allocations: 9.062 kB / 0.6796 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.363, allocations: 6.562 kB / 0.6796 GB, free: 13.14 MB / 0.5137 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.000118/0.3631, allocations: 164 kB / 0.6798 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.3631, allocations: 12.27 kB / 0.6798 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.44e-05/0.3632, allocations: 5.469 kB / 0.6798 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3632, allocations: 1 kB / 0.6798 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3632, allocations: 0 / 0.6798 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3632, allocations: 5.078 kB / 0.6798 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004294/0.3636, allocations: 398.3 kB / 0.6802 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3636, allocations: 1.656 kB / 0.6802 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.094e-05/0.3636, allocations: 5.031 kB / 0.6802 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3637, allocations: 0 / 0.6802 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.3637, allocations: 2.156 kB / 0.6802 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3637, allocations: 9.188 kB / 0.6802 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3637, allocations: 3.938 kB / 0.6802 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.3639, allocations: 228.8 kB / 0.6804 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.905e-05/0.364, allocations: 83.25 kB / 0.6805 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.364, allocations: 10.3 kB / 0.6805 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3641, allocations: 4.562 kB / 0.6805 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.067e-05/0.3642, allocations: 12.64 kB / 0.6805 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.3642, allocations: 6.062 kB / 0.6805 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.944e-05/0.3643, allocations: 89.33 kB / 0.6806 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3643, allocations: 0 / 0.6806 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002388/0.3645, allocations: 18.06 kB / 0.6806 GB, free: 12.15 MB / 0.5137 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.000547/0.3651, allocations: 0.758 MB / 0.6814 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001869/0.3653, allocations: 120.2 kB / 0.6815 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3653, allocations: 0 / 0.6815 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.481e-05/0.3654, allocations: 92.56 kB / 0.6816 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.3657, allocations: 21.34 kB / 0.6816 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3671, allocations: 1.432 MB / 0.683 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.3675, allocations: 0.6913 MB / 0.6837 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.154e-05/0.3675, allocations: 3.281 kB / 0.6837 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.3676, allocations: 14.94 kB / 0.6837 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.3676, allocations: 0 / 0.6837 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0222/0.3898, allocations: 1.9 MB / 0.6856 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/8.101, allocations: 9.047 kB / 0.6856 GB, free: 8.141 MB / 0.5137 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.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 BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)