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.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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.001134/0.001138, allocations: 98.83 kB / 15.05 MB, free: 1.105 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.001344/0.001344, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.019/1.019, allocations: 143.3 MB / 434.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003172, allocations: 8 kB / 0.5159 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1887, allocations: 83.41 MB / 0.5973 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.00156/0.1903, allocations: 1.128 MB / 0.5984 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000629/0.191, allocations: 407.4 kB / 0.5988 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.473e-05/0.191, allocations: 0 / 0.5988 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1911, allocations: 0 / 0.5988 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.01e-05/0.1912, allocations: 15.97 kB / 0.5988 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001262/0.1913, allocations: 11.98 kB / 0.5989 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.527e-05/0.1914, allocations: 35.89 kB / 0.5989 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.777e-05/0.1915, allocations: 4 kB / 0.5989 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.799e-05/0.1915, allocations: 11.94 kB / 0.5989 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.304e-05/0.1916, allocations: 27.89 kB / 0.5989 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.1916, allocations: 4 kB / 0.5989 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.027e-05/0.1916, allocations: 4 kB / 0.5989 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.1916, allocations: 4 kB / 0.5989 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.1917, allocations: 33.64 kB / 0.599 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 6.366e-05/0.1918, allocations: 24.23 kB / 0.599 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1918, allocations: 0 / 0.599 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.72e-07/0.1918, allocations: 3.938 kB / 0.599 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.1918, allocations: 0 / 0.599 GB, free: 6.078 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.0005102/0.1923, allocations: 395.1 kB / 0.5994 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.736e-05/0.1923, allocations: 12.03 kB / 0.5994 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.865e-05/0.1924, allocations: 34.55 kB / 0.5994 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.1924, allocations: 11.91 kB / 0.5994 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1925, allocations: 171 kB / 0.5996 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.1925, allocations: 4 kB / 0.5996 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.1926, allocations: 4 kB / 0.5996 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.1927, allocations: 53.61 kB / 0.5997 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-06/0.1927, allocations: 4 kB / 0.5997 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-06/0.1927, allocations: 7.984 kB / 0.5997 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-06/0.1927, allocations: 0 / 0.5997 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.012e-05/0.1928, allocations: 15.98 kB / 0.5997 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003905/0.1932, allocations: 272.8 kB / 0.5999 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.015e-05/0.1932, allocations: 42.56 kB / 0.6 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.1933, allocations: 4 kB / 0.6 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001755/0.1935, allocations: 101.2 kB / 0.6001 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.1935, allocations: 0 / 0.6001 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002602/0.1937, allocations: 216.5 kB / 0.6003 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.1938, allocations: 85.09 kB / 0.6004 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.372e-05/0.1939, allocations: 118 kB / 0.6005 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.1939, allocations: 29.7 kB / 0.6005 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.1939, allocations: 88.14 kB / 0.6006 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.194, allocations: 11.81 kB / 0.6006 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.194, allocations: 4 kB / 0.6006 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1941, allocations: 318.8 kB / 0.6009 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.898e-05/0.1941, allocations: 12 kB / 0.6009 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.262e-05/0.1942, allocations: 38.56 kB / 0.601 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.775e-05/0.1942, allocations: 53.77 kB / 0.601 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1943, allocations: 384 / 0.601 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001501/0.1944, allocations: 123.2 kB / 0.6011 GB, free: 3.605 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.1945, allocations: 39.41 kB / 0.6012 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-06/0.1945, allocations: 3.938 kB / 0.6012 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.1945, allocations: 3.938 kB / 0.6012 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.984e-05/0.1945, allocations: 8 kB / 0.6012 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.166e-06/0.1945, allocations: 0 / 0.6012 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.832e-05/0.1946, allocations: 19.88 kB / 0.6012 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.1946, allocations: 8.062 kB / 0.6012 GB, free: 3.52 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.1947, allocations: 147.5 kB / 0.6014 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.1947, allocations: 7.906 kB / 0.6014 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.1948, allocations: 12.36 kB / 0.6014 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.1948, allocations: 0 / 0.6014 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.1948, allocations: 4.062 kB / 0.6014 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1948, allocations: 4 kB / 0.6014 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003668/0.1952, allocations: 396.2 kB / 0.6018 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1952, allocations: 0 / 0.6018 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.068e-05/0.1952, allocations: 7.938 kB / 0.6018 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1952, allocations: 0 / 0.6018 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.1952, allocations: 0 / 0.6018 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1952, allocations: 4 kB / 0.6018 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.1952, allocations: 3.953 kB / 0.6018 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/0.1954, allocations: 233.1 kB / 0.602 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.1955, allocations: 81.11 kB / 0.6021 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.1955, allocations: 7.938 kB / 0.6021 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.1956, allocations: 11.98 kB / 0.6021 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.1956, allocations: 11.95 kB / 0.6021 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.1957, allocations: 7.984 kB / 0.6021 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.349e-05/0.1957, allocations: 83.28 kB / 0.6022 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1957, allocations: 4 kB / 0.6022 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002347/0.196, allocations: 12 kB / 0.6022 GB, free: 2.379 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004452/0.1964, allocations: 0.7686 MB / 0.603 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001446/0.1966, allocations: 111.3 kB / 0.6031 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.1966, allocations: 0 / 0.6031 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.721e-05/0.1967, allocations: 91.39 kB / 0.6032 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.1969, allocations: 20.16 kB / 0.6032 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007825/0.1977, allocations: 0.789 MB / 0.6039 GB, free: 496 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.353/0.5507, allocations: 0.6883 MB / 0.6046 GB, free: 40.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.849e-05/0.5508, allocations: 5.25 kB / 0.6046 GB, free: 40.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/0.5509, allocations: 14.27 kB / 0.6046 GB, free: 40.29 MB / 0.4981 GB Notification: Performance of SimCode: time 1.012e-06/0.5509, allocations: 0 / 0.6046 GB, free: 40.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01068/0.5616, allocations: 1.585 MB / 0.6062 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/0.5617, allocations: 189.1 kB / 0.6064 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.223, allocations: 0 / 0.6064 GB, free: 39.98 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/linux/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) Environment - environmentSimulation: