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.001475/0.001475, 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.001671/0.001671, allocations: 196.1 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.8891/0.8891, allocations: 143 MB / 433.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.91 kB / 0.5143 GB, free: 11.58 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1306, allocations: 82.04 MB / 0.5944 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.002191/0.1328, allocations: 1.417 MB / 0.5958 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006144/0.1334, allocations: 431 kB / 0.5962 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.1335, allocations: 0 / 0.5962 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.549e-05/0.1335, allocations: 3.938 kB / 0.5962 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.37e-05/0.1336, allocations: 19.91 kB / 0.5962 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001202/0.1337, allocations: 15.92 kB / 0.5962 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.068e-05/0.1338, allocations: 55.8 kB / 0.5963 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.465e-05/0.1339, allocations: 4 kB / 0.5963 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.105e-05/0.134, allocations: 27.86 kB / 0.5963 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.908e-05/0.134, allocations: 15.92 kB / 0.5963 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.134, allocations: 4 kB / 0.5963 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.044e-05/0.1341, allocations: 4 kB / 0.5963 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.302e-05/0.1341, allocations: 15.97 kB / 0.5963 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.1341, allocations: 19.86 kB / 0.5963 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.367e-05/0.1342, allocations: 44.16 kB / 0.5964 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1342, allocations: 4 kB / 0.5964 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.41e-07/0.1342, allocations: 0 / 0.5964 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.1342, allocations: 0 / 0.5964 GB, free: 7.41 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.0004864/0.1347, allocations: 393 kB / 0.5968 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.834e-05/0.1348, allocations: 11.97 kB / 0.5968 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.937e-05/0.1348, allocations: 34.75 kB / 0.5968 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.1348, allocations: 0.9375 kB / 0.5968 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.1349, allocations: 192.1 kB / 0.597 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.135, allocations: 8.312 kB / 0.597 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-06/0.135, allocations: 384 / 0.597 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.397e-05/0.1351, allocations: 53.81 kB / 0.5971 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1351, allocations: 0 / 0.5971 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.1351, allocations: 4 kB / 0.5971 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1351, allocations: 0 / 0.5971 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.879e-05/0.1351, allocations: 15.98 kB / 0.5971 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003468/0.1355, allocations: 276.8 kB / 0.5973 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.106e-05/0.1356, allocations: 46.5 kB / 0.5974 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.968e-05/0.1356, allocations: 16.98 kB / 0.5974 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.1356, allocations: 0 / 0.5974 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001483/0.1358, allocations: 101.1 kB / 0.5975 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.1358, allocations: 0 / 0.5975 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002256/0.136, allocations: 151.3 kB / 0.5976 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.1361, allocations: 81.11 kB / 0.5977 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.523e-05/0.1362, allocations: 109.8 kB / 0.5978 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.1362, allocations: 25.7 kB / 0.5978 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.456e-05/0.1362, allocations: 88.14 kB / 0.5979 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.1362, allocations: 19.7 kB / 0.598 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.1363, allocations: 25.72 kB / 0.598 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.228e-05/0.1364, allocations: 318.8 kB / 0.5983 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.962e-05/0.1364, allocations: 23.94 kB / 0.5983 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.865e-05/0.1364, allocations: 34.56 kB / 0.5983 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.615e-05/0.1365, allocations: 110.4 kB / 0.5984 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1365, allocations: 0 / 0.5984 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001359/0.1367, allocations: 131.7 kB / 0.5986 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.1367, allocations: 35.48 kB / 0.5986 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1367, allocations: 7.938 kB / 0.5986 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.1367, allocations: 0 / 0.5986 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.548e-05/0.1368, allocations: 11.92 kB / 0.5986 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.1368, allocations: 0 / 0.5986 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.842e-05/0.1368, allocations: 7.938 kB / 0.5986 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.1369, allocations: 8 kB / 0.5986 GB, free: 4.816 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 8.211e-05/0.137, allocations: 155.4 kB / 0.5988 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.137, allocations: 11.91 kB / 0.5988 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.67e-05/0.137, allocations: 8.375 kB / 0.5988 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.137, allocations: 0 / 0.5988 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.137, allocations: 0 / 0.5988 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.137, allocations: 4 kB / 0.5988 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003248/0.1374, allocations: 396.1 kB / 0.5992 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1374, allocations: 0 / 0.5992 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.045e-06/0.1374, allocations: 7.938 kB / 0.5992 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1374, allocations: 0 / 0.5992 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.1374, allocations: 0 / 0.5992 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.1374, allocations: 8 kB / 0.5992 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1374, allocations: 3.938 kB / 0.5992 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/0.1377, allocations: 229.1 kB / 0.5994 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.2e-05/0.1377, allocations: 85 kB / 0.5995 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.1377, allocations: 8 kB / 0.5995 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.1378, allocations: 7.984 kB / 0.5995 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.1379, allocations: 15.86 kB / 0.5995 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.1379, allocations: 12.06 kB / 0.5995 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.918e-05/0.138, allocations: 87.27 kB / 0.5996 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.138, allocations: 0 / 0.5996 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002144/0.1382, allocations: 20 kB / 0.5996 GB, free: 3.656 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.0003931/0.1386, allocations: 0.757 MB / 0.6004 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000143/0.1387, allocations: 119.3 kB / 0.6005 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.1388, allocations: 0 / 0.6005 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.42e-05/0.1388, allocations: 91.39 kB / 0.6006 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.1391, allocations: 15.94 kB / 0.6006 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1403, allocations: 1.427 MB / 0.602 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.1405, allocations: 0.6846 MB / 0.6027 GB, free: 396 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.383e-05/0.1405, allocations: 4 kB / 0.6027 GB, free: 392 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.1406, allocations: 19.42 kB / 0.6027 GB, free: 372 kB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1406, allocations: 0 / 0.6027 GB, free: 372 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.935/2.075, allocations: 1.844 MB / 0.6045 GB, free: 43.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/12.14, allocations: 3.25 kB / 0.6045 GB, free: 43.65 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)