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.393/1.393, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.00105/0.001051, allocations: 179.5 kB / 326.5 MB, free: 2.254 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.774/1.774, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0009517/0.0009517, allocations: 100.3 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003329, allocations: 9.281 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2445, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002516/0.2471, allocations: 1.471 MB / 0.9016 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.2483, allocations: 0.8636 MB / 0.9024 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.2484, allocations: 0 / 0.9024 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000541/0.249, allocations: 143.6 kB / 0.9026 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.2492, allocations: 91.75 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.2495, allocations: 124.3 kB / 0.9028 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.2497, allocations: 103.8 kB / 0.9029 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.2498, allocations: 25.11 kB / 0.9029 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.437e-05/0.2499, allocations: 51.77 kB / 0.9029 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.74e-05/0.25, allocations: 63.75 kB / 0.903 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.25, allocations: 4 kB / 0.903 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.2501, allocations: 43.89 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.163e-05/0.2501, allocations: 35.91 kB / 0.9031 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.171e-05/0.2502, allocations: 45.64 kB / 0.9031 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.2504, allocations: 143.9 kB / 0.9033 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2504, allocations: 4 kB / 0.9033 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2504, allocations: 4 kB / 0.9033 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.2504, allocations: 0 / 0.9033 GB, free: 60.64 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.0005843/0.251, allocations: 470.2 kB / 0.9037 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.251, allocations: 15.97 kB / 0.9037 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.2511, allocations: 30.56 kB / 0.9038 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.2511, allocations: 19.77 kB / 0.9038 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.2514, allocations: 243.7 kB / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.2514, allocations: 0 / 0.904 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.2514, allocations: 12 kB / 0.904 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001777/0.2516, allocations: 87.31 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.2516, allocations: 0 / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.2516, allocations: 0 / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.2517, allocations: 4 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.799e-05/0.2517, allocations: 39.94 kB / 0.9042 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004459/0.2522, allocations: 360.7 kB / 0.9045 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.2524, allocations: 74.66 kB / 0.9046 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.2524, allocations: 0 / 0.9046 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.2526, allocations: 83.41 kB / 0.9046 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.2526, allocations: 3.938 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0003076/0.2529, allocations: 230.5 kB / 0.9049 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.2529, allocations: 77.11 kB / 0.9049 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.2531, allocations: 259 kB / 0.9052 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.2531, allocations: 33.64 kB / 0.9052 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.282e-05/0.2532, allocations: 112.1 kB / 0.9053 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.2532, allocations: 31.62 kB / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.2532, allocations: 0 / 0.9054 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.413e-05/0.2533, allocations: 326.8 kB / 0.9057 GB, free: 57.92 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.448e-05/0.2534, allocations: 31.98 kB / 0.9057 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.214e-05/0.2534, allocations: 59.41 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.143e-05/0.2535, allocations: 36.05 kB / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.2535, allocations: 0 / 0.9058 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000156/0.2537, allocations: 109.4 kB / 0.9059 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.2537, allocations: 8.062 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2537, allocations: 3.953 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2537, allocations: 4 kB / 0.9059 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.455e-05/0.2538, allocations: 19.92 kB / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.2538, allocations: 0 / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.624e-05/0.2539, allocations: 11.91 kB / 0.9059 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.2539, allocations: 4 kB / 0.906 GB, free: 57.62 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 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.y,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.254, allocations: 141.8 kB / 0.9061 GB, free: 57.47 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.254, allocations: 16.19 kB / 0.9061 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.2541, allocations: 21.39 kB / 0.9061 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.2541, allocations: 7.953 kB / 0.9061 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2541, allocations: 0 / 0.9061 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2541, allocations: 3.938 kB / 0.9061 GB, free: 57.42 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.2542, allocations: 221.6 kB / 0.9063 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.2543, allocations: 3.984 kB / 0.9063 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.919e-05/0.2543, allocations: 4 kB / 0.9064 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2543, allocations: 0 / 0.9064 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.2543, allocations: 4 kB / 0.9064 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2543, allocations: 4 kB / 0.9064 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2543, allocations: 3.953 kB / 0.9064 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.2545, allocations: 140.8 kB / 0.9065 GB, free: 56.98 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.2545, allocations: 96.86 kB / 0.9066 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2546, allocations: 4 kB / 0.9066 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.097e-05/0.2546, allocations: 7.984 kB / 0.9066 GB, free: 56.85 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.2547, allocations: 7.953 kB / 0.9066 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.2547, allocations: 8 kB / 0.9066 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000136/0.2548, allocations: 200.1 kB / 0.9068 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2548, allocations: 0 / 0.9068 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002225/0.2551, allocations: 32 kB / 0.9068 GB, free: 56.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001164/0.2562, allocations: 1 MB / 0.9078 GB, free: 55.74 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001761/0.2564, allocations: 71.91 kB / 0.9079 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2564, allocations: 0 / 0.9079 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.73e-05/0.2565, allocations: 35.94 kB / 0.9079 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.2567, allocations: 41.3 kB / 0.908 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.2579, allocations: 1.107 MB / 0.909 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001534/0.2581, allocations: 0.7317 MB / 0.9098 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.803e-05/0.2582, allocations: 29.7 kB / 0.9098 GB, free: 53.66 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/0.2583, allocations: 47.42 kB / 0.9098 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of SimCode: time 2.21e-07/0.2583, allocations: 0 / 0.9098 GB, free: 53.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01419/0.2725, allocations: 3.945 MB / 0.9137 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.2727, allocations: 234.8 kB / 0.9139 GB, free: 49.53 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/2.034, allocations: 0 / 0.9139 GB, free: 49.53 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)