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.001112/0.001112, 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.001187/0.001187, allocations: 186.5 kB / 16.62 MB, free: 6.613 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.381/1.381, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.787/1.787, 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.001348/0.001348, allocations: 70.92 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2185, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003298/0.2219, allocations: 1.788 MB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001473/0.2234, allocations: 0.9422 MB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.208e-05/0.2235, allocations: 3.938 kB / 0.7863 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0006538/0.2242, allocations: 166.7 kB / 0.7864 GB, free: 10.37 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.0002945/0.2245, allocations: 115.6 kB / 0.7866 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.2249, allocations: 139.1 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.2251, allocations: 163.6 kB / 0.7868 GB, free: 9.965 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.2252, allocations: 25.09 kB / 0.7869 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.2253, allocations: 75.62 kB / 0.7869 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.2255, allocations: 67.75 kB / 0.787 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.2255, allocations: 8 kB / 0.787 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.2256, allocations: 63.97 kB / 0.7871 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.062e-05/0.2257, allocations: 51.77 kB / 0.7871 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.531e-05/0.2258, allocations: 63.61 kB / 0.7872 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.2261, allocations: 191.7 kB / 0.7874 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2261, allocations: 4 kB / 0.7874 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2261, allocations: 0 / 0.7874 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.2261, allocations: 0 / 0.7874 GB, free: 9.426 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.0007296/0.2269, allocations: 496.2 kB / 0.7878 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2269, allocations: 8.031 kB / 0.7878 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.691e-05/0.227, allocations: 38.73 kB / 0.7879 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.227, allocations: 16.75 kB / 0.7879 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.2273, allocations: 248.8 kB / 0.7881 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.2274, allocations: 8.359 kB / 0.7881 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.899e-05/0.2274, allocations: 11.92 kB / 0.7882 GB, free: 8.512 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.2276, allocations: 87.33 kB / 0.7882 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2276, allocations: 0 / 0.7882 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.2276, allocations: 0 / 0.7882 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.632e-05/0.2277, allocations: 15.98 kB / 0.7883 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.328e-05/0.2277, allocations: 27.98 kB / 0.7883 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005089/0.2283, allocations: 352.6 kB / 0.7886 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.2285, allocations: 70.67 kB / 0.7887 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.965e-05/0.2285, allocations: 40.84 kB / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.2286, allocations: 0 / 0.7887 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.2287, allocations: 87.31 kB / 0.7888 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.2287, allocations: 0 / 0.7888 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0003205/0.2291, allocations: 145.5 kB / 0.7889 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.2291, allocations: 81.05 kB / 0.789 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.2294, allocations: 271.3 kB / 0.7893 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.2294, allocations: 37.7 kB / 0.7893 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.2295, allocations: 112.1 kB / 0.7894 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.2295, allocations: 23.66 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.2296, allocations: 29.7 kB / 0.7895 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2297, allocations: 326.8 kB / 0.7898 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.129e-05/0.2298, allocations: 27.98 kB / 0.7898 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.607e-05/0.2299, allocations: 59.42 kB / 0.7899 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.23, allocations: 81.98 kB / 0.79 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.23, allocations: 0 / 0.79 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001897/0.2302, allocations: 117.5 kB / 0.7901 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2302, allocations: 4 kB / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2302, allocations: 80 / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2302, allocations: 0 / 0.7901 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.697e-05/0.2303, allocations: 12 kB / 0.7901 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.2303, allocations: 8.047 kB / 0.7901 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.646e-05/0.2304, allocations: 19.86 kB / 0.7901 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.2304, allocations: 4 kB / 0.7901 GB, free: 6.34 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.0001261/0.2306, allocations: 138.5 kB / 0.7902 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.832e-05/0.2306, allocations: 23.7 kB / 0.7903 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.131e-05/0.2306, allocations: 17.39 kB / 0.7903 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.2307, allocations: 4 kB / 0.7903 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2307, allocations: 3.938 kB / 0.7903 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2307, allocations: 7.938 kB / 0.7903 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.2309, allocations: 221.6 kB / 0.7905 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2309, allocations: 0 / 0.7905 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.058e-05/0.2309, allocations: 4 kB / 0.7905 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2309, allocations: 0 / 0.7905 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.2309, allocations: 4 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2309, allocations: 0 / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2309, allocations: 0 / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.2312, allocations: 152.8 kB / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.2312, allocations: 88.92 kB / 0.7907 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.2313, allocations: 11.92 kB / 0.7908 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.982e-05/0.2313, allocations: 8 kB / 0.7908 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.2314, allocations: 7.938 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.2314, allocations: 3.984 kB / 0.7908 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001969/0.2316, allocations: 196.6 kB / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2316, allocations: 0 / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002338/0.2318, allocations: 24 kB / 0.791 GB, free: 5.344 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.001365/0.2332, allocations: 1.004 MB / 0.792 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002113/0.2334, allocations: 75.89 kB / 0.792 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2335, allocations: 0 / 0.792 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.2335, allocations: 44.05 kB / 0.7921 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.2339, allocations: 38.36 kB / 0.7921 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.2359, allocations: 1.965 MB / 0.794 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.2362, allocations: 0.724 MB / 0.7947 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.541e-05/0.2363, allocations: 25.72 kB / 0.7948 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.947e-05/0.2364, allocations: 43.42 kB / 0.7948 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.2364, allocations: 0 / 0.7948 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01945/0.2559, allocations: 4.428 MB / 0.7991 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.581/7.837, allocations: 10.67 kB / 0.7991 GB, free: 13.12 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)