Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_Buildings_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.001394/0.001394, 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.001337/0.001337, allocations: 194.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.716/1.716, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 72.47 kB / 0.6716 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2255, allocations: 114.5 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002462/0.228, allocations: 1.426 MB / 0.7849 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007006/0.2287, allocations: 479.7 kB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.595e-05/0.2288, allocations: 0 / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.123e-05/0.2288, allocations: 0 / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-05/0.2289, allocations: 15.84 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001402/0.229, allocations: 19.98 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.2291, allocations: 51.8 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.041e-05/0.2292, allocations: 8 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.946e-05/0.2293, allocations: 19.92 kB / 0.7854 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.869e-05/0.2293, allocations: 27.84 kB / 0.7854 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.2294, allocations: 4 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.447e-05/0.2294, allocations: 4 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.233e-05/0.2294, allocations: 7.984 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.2295, allocations: 19.88 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.964e-05/0.2296, allocations: 44.11 kB / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2296, allocations: 0 / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2296, allocations: 0 / 0.7855 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.2296, allocations: 0 / 0.7855 GB, free: 11.23 MB / 0.6075 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.0005359/0.2301, allocations: 397 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.2302, allocations: 15.95 kB / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.859e-05/0.2302, allocations: 34.75 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.2302, allocations: 4.938 kB / 0.786 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2304, allocations: 172.3 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.2304, allocations: 384 / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.2304, allocations: 8.375 kB / 0.7861 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.2305, allocations: 58.84 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.433e-06/0.2305, allocations: 0 / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.2305, allocations: 4 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2305, allocations: 0 / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.137e-05/0.2306, allocations: 31.86 kB / 0.7862 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003609/0.231, allocations: 264.8 kB / 0.7865 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.75e-05/0.2311, allocations: 42.56 kB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.395e-05/0.2311, allocations: 20.98 kB / 0.7865 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.2311, allocations: 7.938 kB / 0.7865 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.2313, allocations: 101 kB / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.272e-06/0.2313, allocations: 0 / 0.7866 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002535/0.2316, allocations: 143.3 kB / 0.7868 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.2316, allocations: 81.05 kB / 0.7869 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.803e-05/0.2317, allocations: 113.8 kB / 0.787 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.2317, allocations: 25.7 kB / 0.787 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.2318, allocations: 92.14 kB / 0.7871 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.753e-05/0.2318, allocations: 15.75 kB / 0.7871 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.82e-05/0.2318, allocations: 29.7 kB / 0.7871 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.2319, allocations: 318.8 kB / 0.7874 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.197e-05/0.232, allocations: 15.98 kB / 0.7874 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.566e-05/0.232, allocations: 38.56 kB / 0.7875 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.298e-05/0.2321, allocations: 113.9 kB / 0.7876 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2321, allocations: 0 / 0.7876 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001431/0.2323, allocations: 127.2 kB / 0.7877 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.2323, allocations: 33.7 kB / 0.7877 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2323, allocations: 0 / 0.7877 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.2323, allocations: 4 kB / 0.7877 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.888e-05/0.2324, allocations: 4 kB / 0.7877 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.2324, allocations: 4 kB / 0.7877 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.138e-05/0.2325, allocations: 12.05 kB / 0.7878 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.2325, allocations: 4 kB / 0.7878 GB, free: 8.641 MB / 0.6075 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 9.412e-05/0.2326, allocations: 154.7 kB / 0.7879 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.211e-05/0.2326, allocations: 15.88 kB / 0.7879 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.2326, allocations: 8.75 kB / 0.7879 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2326, allocations: 0 / 0.7879 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2326, allocations: 4.062 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2327, allocations: 0 / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.233, allocations: 408.1 kB / 0.7883 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.233, allocations: 0 / 0.7883 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.838e-06/0.2331, allocations: 4 kB / 0.7883 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2331, allocations: 0 / 0.7883 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.2331, allocations: 7.922 kB / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2331, allocations: 0 / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2331, allocations: 3.938 kB / 0.7883 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.2333, allocations: 233.1 kB / 0.7886 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.2333, allocations: 89.02 kB / 0.7886 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.2334, allocations: 0 / 0.7886 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.2335, allocations: 11.98 kB / 0.7887 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.2335, allocations: 11.94 kB / 0.7887 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.2335, allocations: 3.984 kB / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.486e-05/0.2336, allocations: 87.28 kB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2336, allocations: 0 / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002254/0.2338, allocations: 12 kB / 0.7888 GB, free: 7.492 MB / 0.6075 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.0004467/0.2343, allocations: 0.7649 MB / 0.7895 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001721/0.2345, allocations: 116.2 kB / 0.7896 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.2345, allocations: 0 / 0.7896 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.607e-05/0.2346, allocations: 95.38 kB / 0.7897 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.2349, allocations: 27.92 kB / 0.7897 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.2362, allocations: 1.409 MB / 0.7911 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.2364, allocations: 0.6947 MB / 0.7918 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.067e-05/0.2364, allocations: 7.781 kB / 0.7918 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.2365, allocations: 19.38 kB / 0.7918 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2365, allocations: 0 / 0.7918 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.2554, allocations: 1.86 MB / 0.7936 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/7.915, allocations: 10.94 kB / 0.7936 GB, free: 2.391 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)