Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.325/1.325, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009477/0.0009475, allocations: 180.3 kB / 325.9 MB, free: 2.672 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205 MB / 0.576 GB, free: 20.95 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007291/0.000729, allocations: 93.33 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 15.64 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2415, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002102/0.2437, allocations: 1.529 MB / 0.8977 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.245, allocations: 0.9341 MB / 0.8986 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001221/0.2451, allocations: 7.938 kB / 0.8986 GB, free: 65.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0005715/0.2457, allocations: 161.6 kB / 0.8988 GB, free: 65.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.2459, allocations: 95.7 kB / 0.8989 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.2463, allocations: 134.5 kB / 0.899 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.2465, allocations: 167.6 kB / 0.8991 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2466, allocations: 25.09 kB / 0.8992 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.13e-05/0.2467, allocations: 51.77 kB / 0.8992 GB, free: 64.94 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2468, allocations: 67.62 kB / 0.8993 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.2468, allocations: 4 kB / 0.8993 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.2469, allocations: 51.97 kB / 0.8993 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.269e-05/0.247, allocations: 39.89 kB / 0.8994 GB, free: 64.78 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.869e-05/0.2471, allocations: 55.55 kB / 0.8994 GB, free: 64.72 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002204/0.2473, allocations: 191.4 kB / 0.8996 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.2473, allocations: 0 / 0.8996 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.895e-06/0.2474, allocations: 0 / 0.8996 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.2474, allocations: 0 / 0.8996 GB, free: 64.54 MB / 0.6042 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.000719/0.2481, allocations: 473.9 kB / 0.9001 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.2481, allocations: 12.02 kB / 0.9001 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.2482, allocations: 34.75 kB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.2483, allocations: 16.75 kB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.2485, allocations: 240.8 kB / 0.9003 GB, free: 63.67 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.2486, allocations: 16.36 kB / 0.9004 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.2486, allocations: 7.938 kB / 0.9004 GB, free: 63.65 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001688/0.2488, allocations: 87.31 kB / 0.9005 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2488, allocations: 0 / 0.9005 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.2488, allocations: 4 kB / 0.9005 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.202e-05/0.2488, allocations: 11.98 kB / 0.9005 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.151e-05/0.2489, allocations: 35.92 kB / 0.9005 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005/0.2494, allocations: 352.6 kB / 0.9008 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.2496, allocations: 74.61 kB / 0.9009 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.74e-05/0.2497, allocations: 36.84 kB / 0.9009 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.2497, allocations: 4 kB / 0.9009 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.2498, allocations: 79.38 kB / 0.901 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.2499, allocations: 0 / 0.901 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.00029/0.2502, allocations: 153.3 kB / 0.9012 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2502, allocations: 77.11 kB / 0.9012 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.2504, allocations: 270.8 kB / 0.9015 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.2504, allocations: 29.7 kB / 0.9015 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.2505, allocations: 120.1 kB / 0.9016 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.2505, allocations: 15.72 kB / 0.9017 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.2505, allocations: 21.7 kB / 0.9017 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.107e-05/0.2506, allocations: 330.8 kB / 0.902 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.374e-05/0.2507, allocations: 28.03 kB / 0.902 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.359e-05/0.2507, allocations: 63.36 kB / 0.9021 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.731e-05/0.2508, allocations: 73.72 kB / 0.9022 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2509, allocations: 0 / 0.9022 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000152/0.251, allocations: 113.4 kB / 0.9023 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.251, allocations: 7.984 kB / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.251, allocations: 0 / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2511, allocations: 4 kB / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.096e-05/0.2511, allocations: 11.94 kB / 0.9023 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2512, allocations: 0 / 0.9023 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.2512, allocations: 15.91 kB / 0.9023 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.2512, allocations: 4.375 kB / 0.9023 GB, free: 61.5 MB / 0.6042 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.000101/0.2513, allocations: 142.5 kB / 0.9024 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.2514, allocations: 15.81 kB / 0.9025 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.2514, allocations: 17.41 kB / 0.9025 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.2514, allocations: 15.91 kB / 0.9025 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2514, allocations: 0 / 0.9025 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2514, allocations: 3.938 kB / 0.9025 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.2516, allocations: 225.5 kB / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2516, allocations: 4 kB / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.849e-05/0.2516, allocations: 4 kB / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2516, allocations: 0 / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.2516, allocations: 4 kB / 0.9027 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2516, allocations: 0 / 0.9027 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2517, allocations: 0 / 0.9027 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.2518, allocations: 144.8 kB / 0.9029 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.357e-05/0.2519, allocations: 96.86 kB / 0.9029 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.2519, allocations: 8 kB / 0.903 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.748e-05/0.252, allocations: 11.98 kB / 0.903 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.252, allocations: 3.938 kB / 0.903 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.252, allocations: 11.94 kB / 0.903 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001316/0.2522, allocations: 196.4 kB / 0.9032 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2522, allocations: 0 / 0.9032 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002144/0.2524, allocations: 28 kB / 0.9032 GB, free: 60.48 MB / 0.6042 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.001185/0.2536, allocations: 0.9971 MB / 0.9042 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001833/0.2538, allocations: 71.92 kB / 0.9042 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2538, allocations: 0 / 0.9042 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.156e-05/0.2539, allocations: 39.91 kB / 0.9043 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.2541, allocations: 42.41 kB / 0.9043 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001883/0.256, allocations: 1.962 MB / 0.9062 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.2563, allocations: 0.7316 MB / 0.9069 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.842e-05/0.2563, allocations: 29.72 kB / 0.907 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.294e-05/0.2564, allocations: 51.41 kB / 0.907 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of SimCode: time 3.01e-07/0.2564, allocations: 0 / 0.907 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01337/0.2698, allocations: 4.024 MB / 0.911 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.27, allocations: 255.8 kB / 0.9112 GB, free: 52.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.123, allocations: 0 / 0.9112 GB, free: 52.42 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)