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.001475/0.001475, allocations: 109.4 kB / 15.69 MB, free: 128 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.001806/0.001806, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.441/1.441, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.7/1.7, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001447/0.001447, allocations: 69.61 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2467, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003389/0.2502, allocations: 1.435 MB / 0.785 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009445/0.2512, allocations: 479.7 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.193e-05/0.2513, allocations: 4 kB / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.622e-05/0.2513, allocations: 0 / 0.7855 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.2514, allocations: 7.875 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.2516, allocations: 15.98 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000145/0.2518, allocations: 59.78 kB / 0.7856 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.2519, allocations: 7.984 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.442e-05/0.252, allocations: 23.92 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.2521, allocations: 19.86 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.2521, allocations: 8 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.2521, allocations: 4 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.417e-05/0.2522, allocations: 7.984 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.53e-05/0.2522, allocations: 19.88 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.2524, allocations: 52.03 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2524, allocations: 0 / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2524, allocations: 0 / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.2524, allocations: 0 / 0.7857 GB, free: 11.14 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.0007131/0.2531, allocations: 397 kB / 0.7861 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.2532, allocations: 8.031 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.291e-05/0.2532, allocations: 38.73 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.589e-05/0.2533, allocations: 4.938 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.2534, allocations: 168.3 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.2534, allocations: 384 / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.2535, allocations: 4.375 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.2536, allocations: 58.86 kB / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.2536, allocations: 0 / 0.7863 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.2536, allocations: 3.984 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2537, allocations: 4 kB / 0.7863 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.872e-05/0.2537, allocations: 27.81 kB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004633/0.2542, allocations: 276.8 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.502e-05/0.2543, allocations: 34.58 kB / 0.7867 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.029e-05/0.2543, allocations: 24.97 kB / 0.7867 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2544, allocations: 0 / 0.7867 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.2546, allocations: 101 kB / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.2546, allocations: 0 / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0003171/0.2549, allocations: 147.2 kB / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.255, allocations: 81.09 kB / 0.787 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.596e-05/0.2551, allocations: 117.9 kB / 0.7871 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2551, allocations: 25.7 kB / 0.7871 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.2552, allocations: 84.14 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.2552, allocations: 23.81 kB / 0.7872 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.725e-05/0.2553, allocations: 29.7 kB / 0.7873 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.2554, allocations: 318.8 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.773e-05/0.2554, allocations: 23.98 kB / 0.7876 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.547e-05/0.2555, allocations: 34.56 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.2556, allocations: 117.9 kB / 0.7877 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2556, allocations: 0 / 0.7877 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001536/0.2558, allocations: 119.2 kB / 0.7879 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/0.2558, allocations: 37.69 kB / 0.7879 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2558, allocations: 0 / 0.7879 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2559, allocations: 4 kB / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.01e-05/0.2559, allocations: 0 / 0.7879 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2559, allocations: 4 kB / 0.7879 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.447e-05/0.256, allocations: 11.98 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.256, allocations: 8.062 kB / 0.7879 GB, free: 8.547 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 0.0001109/0.2561, allocations: 150.7 kB / 0.7881 GB, free: 8.387 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.2561, allocations: 7.906 kB / 0.7881 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.288e-05/0.2562, allocations: 16.73 kB / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.2562, allocations: 0 / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2562, allocations: 0 / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2562, allocations: 0 / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004612/0.2567, allocations: 408 kB / 0.7885 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2567, allocations: 4 kB / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-06/0.2567, allocations: 0 / 0.7885 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2567, allocations: 4 kB / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.2567, allocations: 0 / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.2567, allocations: 0 / 0.7885 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2567, allocations: 3.938 kB / 0.7885 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.2569, allocations: 229.1 kB / 0.7887 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.257, allocations: 89 kB / 0.7888 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.257, allocations: 8 kB / 0.7888 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.2571, allocations: 11.98 kB / 0.7888 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.2572, allocations: 3.938 kB / 0.7888 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.2572, allocations: 4 kB / 0.7888 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.927e-05/0.2573, allocations: 91.27 kB / 0.7889 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2573, allocations: 0 / 0.7889 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002375/0.2575, allocations: 16 kB / 0.7889 GB, free: 7.406 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.0004919/0.258, allocations: 0.7658 MB / 0.7897 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001832/0.2582, allocations: 119.4 kB / 0.7898 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2582, allocations: 0 / 0.7898 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.125e-05/0.2583, allocations: 87.39 kB / 0.7899 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.2586, allocations: 30.3 kB / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.2599, allocations: 1.423 MB / 0.7913 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.2601, allocations: 0.683 MB / 0.792 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.2602, allocations: 7.984 kB / 0.792 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.2602, allocations: 19.42 kB / 0.792 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2602, allocations: 0 / 0.792 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.2778, allocations: 1.875 MB / 0.7938 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.634/7.912, allocations: 8.062 kB / 0.7938 GB, free: 2.305 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)