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/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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.001122/0.001122, allocations: 108 kB / 15.6 MB, free: 132 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.001173/0.001173, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.171/1.171, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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/package.mo): time 0.8509/0.8509, allocations: 143.1 MB / 433.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.89 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1234, allocations: 82.04 MB / 0.5944 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.002073/0.1256, allocations: 1.42 MB / 0.5958 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0005489/0.1261, allocations: 434.9 kB / 0.5962 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.273e-05/0.1262, allocations: 0 / 0.5962 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.249e-05/0.1262, allocations: 3.938 kB / 0.5962 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.458e-05/0.1263, allocations: 11.86 kB / 0.5962 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001228/0.1264, allocations: 23.91 kB / 0.5962 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.767e-05/0.1265, allocations: 47.86 kB / 0.5963 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.918e-05/0.1266, allocations: 8 kB / 0.5963 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.408e-05/0.1266, allocations: 19.92 kB / 0.5963 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.556e-05/0.1267, allocations: 19.92 kB / 0.5963 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.1267, allocations: 4 kB / 0.5963 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.018e-05/0.1267, allocations: 4 kB / 0.5963 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.1267, allocations: 7.984 kB / 0.5963 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.112e-05/0.1268, allocations: 31.8 kB / 0.5964 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.964e-05/0.1269, allocations: 40.17 kB / 0.5964 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1269, allocations: 0 / 0.5964 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.022e-06/0.1269, allocations: 4 kB / 0.5964 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.1269, allocations: 0 / 0.5964 GB, free: 7.418 MB / 0.4981 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.0004792/0.1274, allocations: 395 kB / 0.5968 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.1274, allocations: 12.03 kB / 0.5968 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.436e-05/0.1274, allocations: 30.75 kB / 0.5968 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.1275, allocations: 8.875 kB / 0.5968 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.727e-05/0.1276, allocations: 176.2 kB / 0.597 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/0.1276, allocations: 8.312 kB / 0.597 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.1276, allocations: 8.375 kB / 0.597 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.415e-05/0.1277, allocations: 57.78 kB / 0.5971 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.1277, allocations: 0 / 0.5971 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.1277, allocations: 4 kB / 0.5971 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.1277, allocations: 3.938 kB / 0.5971 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.694e-05/0.1278, allocations: 23.98 kB / 0.5971 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003025/0.1281, allocations: 268.8 kB / 0.5974 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.614e-05/0.1282, allocations: 38.56 kB / 0.5974 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.064e-05/0.1282, allocations: 20.98 kB / 0.5974 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.1282, allocations: 4 kB / 0.5974 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.1283, allocations: 101 kB / 0.5975 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.253e-06/0.1284, allocations: 0 / 0.5975 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002182/0.1286, allocations: 143.3 kB / 0.5977 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.1286, allocations: 85.11 kB / 0.5977 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.607e-05/0.1287, allocations: 113.8 kB / 0.5978 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.133e-05/0.1287, allocations: 25.7 kB / 0.5979 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.1288, allocations: 84.14 kB / 0.5979 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.767e-05/0.1288, allocations: 23.7 kB / 0.598 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.1288, allocations: 21.72 kB / 0.598 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.1289, allocations: 326.8 kB / 0.5983 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.873e-05/0.1289, allocations: 16 kB / 0.5983 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.699e-05/0.129, allocations: 38.56 kB / 0.5984 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.443e-05/0.1291, allocations: 113.9 kB / 0.5985 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1291, allocations: 0 / 0.5985 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001299/0.1292, allocations: 119.3 kB / 0.5986 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.1292, allocations: 37.77 kB / 0.5986 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1292, allocations: 4 kB / 0.5986 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.1293, allocations: 0 / 0.5986 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.368e-05/0.1293, allocations: 8.359 kB / 0.5986 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.1293, allocations: 0 / 0.5986 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.907e-05/0.1294, allocations: 15.88 kB / 0.5986 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.1294, allocations: 3.938 kB / 0.5986 GB, free: 4.828 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 7.902e-05/0.1295, allocations: 155.4 kB / 0.5988 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.1295, allocations: 7.906 kB / 0.5988 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.1295, allocations: 16.38 kB / 0.5988 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1295, allocations: 0 / 0.5988 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.1295, allocations: 0 / 0.5988 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1295, allocations: 0 / 0.5988 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.1299, allocations: 396.5 kB / 0.5992 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1299, allocations: 0 / 0.5992 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.195e-06/0.1299, allocations: 3.984 kB / 0.5992 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1299, allocations: 0 / 0.5992 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.1299, allocations: 4 kB / 0.5992 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1299, allocations: 0 / 0.5992 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1299, allocations: 7.938 kB / 0.5992 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.1301, allocations: 237.1 kB / 0.5994 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.147e-05/0.1301, allocations: 85.02 kB / 0.5995 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.1301, allocations: 4.062 kB / 0.5995 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.306e-05/0.1302, allocations: 7.984 kB / 0.5995 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.1303, allocations: 15.92 kB / 0.5995 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1303, allocations: 4 kB / 0.5995 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.972e-05/0.1303, allocations: 95.42 kB / 0.5996 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1303, allocations: 0 / 0.5996 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002027/0.1306, allocations: 12 kB / 0.5996 GB, free: 3.676 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.0003642/0.1309, allocations: 0.7635 MB / 0.6004 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.1311, allocations: 127.3 kB / 0.6005 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.1311, allocations: 0 / 0.6005 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.933e-05/0.1312, allocations: 87.34 kB / 0.6006 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002492/0.1314, allocations: 19.91 kB / 0.6006 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.1324, allocations: 1.421 MB / 0.602 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.1326, allocations: 0.6885 MB / 0.6027 GB, free: 404 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.06e-05/0.1326, allocations: 0 / 0.6027 GB, free: 404 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.579e-05/0.1327, allocations: 19.42 kB / 0.6027 GB, free: 384 kB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1327, allocations: 0 / 0.6027 GB, free: 384 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2013/0.334, allocations: 1.85 MB / 0.6045 GB, free: 43.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.179/6.513, allocations: 7.953 kB / 0.6045 GB, free: 43.64 MB / 0.4981 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)