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.001242/0.001242, 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.001219/0.001218, allocations: 186.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.509/1.509, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.731/1.731, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.00159/0.00159, allocations: 65.94 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2241, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002863/0.227, allocations: 1.441 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007397/0.2277, allocations: 471.8 kB / 0.7855 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.2278, allocations: 4 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.728e-05/0.2278, allocations: 3.938 kB / 0.7855 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.817e-05/0.2279, allocations: 11.92 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.2281, allocations: 19.92 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.2282, allocations: 51.8 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.928e-05/0.2283, allocations: 11.97 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.833e-05/0.2283, allocations: 16 kB / 0.7856 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.819e-05/0.2284, allocations: 23.84 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.2284, allocations: 8 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.2285, allocations: 4 kB / 0.7856 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.569e-05/0.2285, allocations: 11.94 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.261e-05/0.2286, allocations: 19.86 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.2287, allocations: 48.09 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2287, allocations: 0 / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.774e-06/0.2287, allocations: 0 / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.2287, allocations: 0 / 0.7857 GB, free: 11.12 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.0006792/0.2294, allocations: 397 kB / 0.7861 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.2294, allocations: 8.031 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.2295, allocations: 38.75 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.2295, allocations: 0.9375 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.2297, allocations: 172.3 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2297, allocations: 4.375 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.2297, allocations: 384 / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001234/0.2298, allocations: 58.81 kB / 0.7863 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.2299, allocations: 0 / 0.7863 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2299, allocations: 4 kB / 0.7863 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2299, allocations: 4 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.345e-05/0.2299, allocations: 19.92 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.2304, allocations: 268.8 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.516e-05/0.2305, allocations: 42.56 kB / 0.7867 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.947e-05/0.2305, allocations: 20.92 kB / 0.7867 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.2305, allocations: 4.062 kB / 0.7867 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.2307, allocations: 113 kB / 0.7868 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 2.705e-06/0.2308, allocations: 3.984 kB / 0.7868 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002849/0.231, allocations: 139.2 kB / 0.7869 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.2311, allocations: 81.11 kB / 0.787 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.489e-05/0.2312, allocations: 109.8 kB / 0.7871 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2312, allocations: 25.7 kB / 0.7871 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.2313, allocations: 88.14 kB / 0.7872 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.2313, allocations: 27.72 kB / 0.7873 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.2314, allocations: 25.72 kB / 0.7873 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.2315, allocations: 318.8 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.33e-05/0.2316, allocations: 16 kB / 0.7876 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.787e-05/0.2316, allocations: 34.56 kB / 0.7876 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.2317, allocations: 121.9 kB / 0.7877 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2317, allocations: 4 kB / 0.7877 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000154/0.2319, allocations: 123.6 kB / 0.7879 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.232, allocations: 29.7 kB / 0.7879 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.232, allocations: 4 kB / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.232, allocations: 0 / 0.7879 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.952e-05/0.232, allocations: 11.92 kB / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.232, allocations: 3.984 kB / 0.7879 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.994e-05/0.2321, allocations: 8 kB / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.2321, allocations: 8.062 kB / 0.7879 GB, free: 8.527 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.0001093/0.2322, allocations: 154.3 kB / 0.7881 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.2323, allocations: 7.906 kB / 0.7881 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.809e-05/0.2323, allocations: 8.375 kB / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2323, allocations: 0 / 0.7881 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2323, allocations: 4 kB / 0.7881 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2323, allocations: 0 / 0.7881 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003935/0.2327, allocations: 404.4 kB / 0.7885 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.2328, allocations: 11.98 kB / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-06/0.2328, allocations: 0 / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2328, allocations: 0 / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.2328, allocations: 0 / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2328, allocations: 4 kB / 0.7885 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2328, allocations: 3.938 kB / 0.7885 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.233, allocations: 229.1 kB / 0.7887 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.2331, allocations: 85.02 kB / 0.7888 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.2331, allocations: 8 kB / 0.7888 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.2332, allocations: 7.984 kB / 0.7888 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.2333, allocations: 11.92 kB / 0.7888 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.2333, allocations: 8 kB / 0.7888 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.825e-05/0.2333, allocations: 79.28 kB / 0.7889 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2333, allocations: 0 / 0.7889 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002323/0.2336, allocations: 23.98 kB / 0.7889 GB, free: 7.383 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.0004731/0.234, allocations: 0.7619 MB / 0.7897 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001689/0.2342, allocations: 115.3 kB / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2342, allocations: 0 / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.926e-05/0.2343, allocations: 91.34 kB / 0.7899 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.2346, allocations: 26.55 kB / 0.7899 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.2359, allocations: 1.418 MB / 0.7913 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.2362, allocations: 0.6846 MB / 0.792 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.644e-05/0.2363, allocations: 7.984 kB / 0.792 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.2363, allocations: 19.44 kB / 0.792 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2363, allocations: 0 / 0.792 GB, free: 4.086 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.541/1.778, allocations: 1.87 MB / 0.7938 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.783/10.56, allocations: 7.938 kB / 0.7938 GB, free: 2.289 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)