Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.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.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator",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.001162/0.001162, 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.001765/0.001764, allocations: 195.8 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.668/1.668, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.678/1.678, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001381/0.001381, allocations: 69.27 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2332, allocations: 114.6 MB / 0.7835 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003235/0.2364, allocations: 1.782 MB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001419/0.2379, allocations: 0.9344 MB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.216e-05/0.238, allocations: 3.938 kB / 0.7861 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0006105/0.2386, allocations: 163.5 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.2389, allocations: 115.6 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.2393, allocations: 134.3 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.2396, allocations: 171.6 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2397, allocations: 33.05 kB / 0.7867 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.2398, allocations: 71.69 kB / 0.7868 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.24, allocations: 71.69 kB / 0.7869 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.24, allocations: 8 kB / 0.7869 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.2401, allocations: 59.97 kB / 0.7869 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.795e-05/0.2402, allocations: 39.84 kB / 0.787 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.546e-05/0.2403, allocations: 63.55 kB / 0.787 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.2406, allocations: 187.7 kB / 0.7872 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2406, allocations: 4 kB / 0.7872 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.924e-06/0.2406, allocations: 3.938 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.2406, allocations: 4 kB / 0.7872 GB, free: 9.523 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007053/0.2413, allocations: 492.3 kB / 0.7877 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2414, allocations: 8.031 kB / 0.7877 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.2414, allocations: 34.75 kB / 0.7877 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.2415, allocations: 16.75 kB / 0.7877 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.2417, allocations: 252.8 kB / 0.788 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.2418, allocations: 4.375 kB / 0.788 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.2418, allocations: 3.938 kB / 0.788 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.242, allocations: 99.31 kB / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.242, allocations: 0 / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.242, allocations: 3.984 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.242, allocations: 4 kB / 0.7881 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001058/0.2422, allocations: 35.92 kB / 0.7881 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.2427, allocations: 348.7 kB / 0.7885 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.2429, allocations: 82.61 kB / 0.7885 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.481e-05/0.2429, allocations: 32.84 kB / 0.7886 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.243, allocations: 0 / 0.7886 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001517/0.2431, allocations: 79.39 kB / 0.7886 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.2431, allocations: 4 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003195/0.2434, allocations: 145.7 kB / 0.7888 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.2435, allocations: 85.09 kB / 0.7889 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.2438, allocations: 271.2 kB / 0.7891 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.2438, allocations: 29.7 kB / 0.7892 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.2439, allocations: 116.1 kB / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.2439, allocations: 27.64 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.2439, allocations: 25.7 kB / 0.7893 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.2441, allocations: 330.8 kB / 0.7896 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.516e-05/0.2441, allocations: 27.98 kB / 0.7897 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.174e-05/0.2442, allocations: 71.28 kB / 0.7897 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.2443, allocations: 65.7 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2443, allocations: 0 / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001886/0.2445, allocations: 121.5 kB / 0.7899 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.2446, allocations: 4 kB / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.2446, allocations: 0 / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2446, allocations: 112 / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.614e-05/0.2447, allocations: 23.86 kB / 0.7899 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2447, allocations: 0 / 0.7899 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.686e-05/0.2448, allocations: 11.88 kB / 0.7899 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.615e-06/0.2448, allocations: 4 kB / 0.7899 GB, free: 6.449 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.y) * 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: 1 * Algorithm blocks: 0 * 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.0001207/0.2449, allocations: 141.9 kB / 0.7901 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/0.2449, allocations: 19.72 kB / 0.7901 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.349e-05/0.245, allocations: 17.39 kB / 0.7901 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/0.245, allocations: 12 kB / 0.7901 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.245, allocations: 0 / 0.7901 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.245, allocations: 3.938 kB / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/0.2452, allocations: 221.6 kB / 0.7903 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.2452, allocations: 96 / 0.7903 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.893e-05/0.2452, allocations: 3.938 kB / 0.7903 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.2453, allocations: 7.984 kB / 0.7904 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.2453, allocations: 4 kB / 0.7904 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.2453, allocations: 3.938 kB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2453, allocations: 160 / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.2455, allocations: 144.9 kB / 0.7905 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.834e-05/0.2456, allocations: 92.91 kB / 0.7906 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.2456, allocations: 0 / 0.7906 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.909e-05/0.2457, allocations: 8 kB / 0.7906 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.2457, allocations: 15.92 kB / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.2457, allocations: 0 / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001633/0.2459, allocations: 192.5 kB / 0.7908 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2459, allocations: 4 kB / 0.7908 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002435/0.2461, allocations: 31.98 kB / 0.7908 GB, free: 5.445 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: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * 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.001266/0.2474, allocations: 1.003 MB / 0.7918 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002002/0.2476, allocations: 75.97 kB / 0.7919 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2476, allocations: 0 / 0.7919 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.091e-05/0.2477, allocations: 39.92 kB / 0.7919 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.248, allocations: 39.89 kB / 0.792 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.25, allocations: 1.949 MB / 0.7939 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.2503, allocations: 0.7278 MB / 0.7946 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.27e-05/0.2503, allocations: 33.58 kB / 0.7946 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.399e-05/0.2504, allocations: 47.42 kB / 0.7946 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.2504, allocations: 0 / 0.7946 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.2698, allocations: 4.421 MB / 0.799 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.034/7.303, allocations: 0 / 0.799 GB, free: 13.24 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)