Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.756/1.756, allocations: 285.4 MB / 298 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 172.8 kB / 366.4 MB, free: 2.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.725/1.725, allocations: 205.1 MB / 0.6248 GB, free: 7.711 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007695/0.0007696, allocations: 96.83 kB / 0.738 GB, free: 40.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.401e-05/4.425e-05, allocations: 4 kB / 0.8584 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6768/0.6769, allocations: 115.3 MB / 0.971 GB, free: 77.73 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2281/0.905, allocations: 141.9 MB / 1.11 GB, free: 9.734 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/0.9054, allocations: 80.61 kB / 1.11 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02237/0.9278, allocations: 5.392 MB / 1.115 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.824e-06/0.9279, allocations: 0.7188 kB / 1.115 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.731e-05/0.9279, allocations: 11.98 kB / 1.115 GB, free: 4.305 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007823/0.9287, allocations: 465.2 kB / 1.115 GB, free: 3.801 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/0.9288, allocations: 8.031 kB / 1.115 GB, free: 3.793 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.824e-05/0.9289, allocations: 39.73 kB / 1.115 GB, free: 3.746 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.929, allocations: 15.81 kB / 1.115 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005494/0.9295, allocations: 255.7 kB / 1.116 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.9296, allocations: 4.75 kB / 1.116 GB, free: 3.434 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.439e-05/0.9296, allocations: 9.812 kB / 1.116 GB, free: 3.43 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.9299, allocations: 96.17 kB / 1.116 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.9299, allocations: 0 / 1.116 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.9299, allocations: 0 / 1.116 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.93, allocations: 4 kB / 1.116 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.9301, allocations: 34.77 kB / 1.116 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.9309, allocations: 384.5 kB / 1.116 GB, free: 2.859 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.9311, allocations: 83.55 kB / 1.116 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.922e-05/0.9312, allocations: 28.92 kB / 1.116 GB, free: 2.738 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.9312, allocations: 4.656 kB / 1.116 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.9315, allocations: 89.75 kB / 1.116 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 2.134e-06/0.9315, allocations: 4 kB / 1.116 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0003531/0.9318, allocations: 105.5 kB / 1.116 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.881e-05/0.9319, allocations: 106.8 kB / 1.117 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.9323, allocations: 242.6 kB / 1.117 GB, free: 2.156 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.9324, allocations: 25.7 kB / 1.117 GB, free: 2.125 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.9325, allocations: 118.9 kB / 1.117 GB, free: 2.008 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.9326, allocations: 27.77 kB / 1.117 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.9326, allocations: 0 / 1.117 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.9328, allocations: 326.8 kB / 1.117 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.923e-05/0.9329, allocations: 31.92 kB / 1.117 GB, free: 1.621 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.933, allocations: 75.56 kB / 1.117 GB, free: 1.535 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.562e-05/0.9331, allocations: 27.98 kB / 1.117 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.9331, allocations: 0 / 1.117 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002733/0.9334, allocations: 113.4 kB / 1.118 GB, free: 1.391 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.9334, allocations: 4 kB / 1.118 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.9335, allocations: 0 / 1.118 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.9335, allocations: 4 kB / 1.118 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.9336, allocations: 12.02 kB / 1.118 GB, free: 1.371 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.9337, allocations: 8 kB / 1.118 GB, free: 1.363 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.9338, allocations: 7.953 kB / 1.118 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.9338, allocations: 0 / 1.118 GB, free: 1.355 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete 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.000133/0.9339, allocations: 124.6 kB / 1.118 GB, free: 1.23 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.301e-05/0.934, allocations: 19.75 kB / 1.118 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003321/0.9343, allocations: 123.1 kB / 1.118 GB, free: 1.086 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.9344, allocations: 4 kB / 1.118 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/0.9344, allocations: 4 kB / 1.118 GB, free: 1.078 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.9344, allocations: 3.938 kB / 1.118 GB, free: 1.074 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000291/0.9347, allocations: 241.4 kB / 1.118 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.9347, allocations: 0 / 1.118 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.9348, allocations: 8 kB / 1.118 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.9348, allocations: 0 / 1.118 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.9348, allocations: 0 / 1.118 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.9348, allocations: 4.828 kB / 1.118 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.9348, allocations: 0 / 1.118 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.9352, allocations: 156.4 kB / 1.118 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.9353, allocations: 100.9 kB / 1.118 GB, free: 0.4961 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.9353, allocations: 0 / 1.118 GB, free: 0.4961 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-05/0.9354, allocations: 8 kB / 1.118 GB, free: 500 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.9355, allocations: 11.97 kB / 1.118 GB, free: 488 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.9355, allocations: 4 kB / 1.118 GB, free: 484 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002967/0.9359, allocations: 196.4 kB / 1.119 GB, free: 288 kB / 0.7136 GB Notification: Performance of sort global known variables: time 4.21e-07/0.9359, allocations: 0 / 1.119 GB, free: 288 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004541/0.9363, allocations: 51.92 kB / 1.119 GB, free: 236 kB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.001869/0.9382, allocations: 0.9706 MB / 1.12 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002769/0.9385, allocations: 83.91 kB / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.9385, allocations: 0 / 1.12 GB, free: 15.3 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.9386, allocations: 35.98 kB / 1.12 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.939, allocations: 37.2 kB / 1.12 GB, free: 15.23 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000874/0.9399, allocations: 297.9 kB / 1.12 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.9403, allocations: 0.7282 MB / 1.121 GB, free: 14.16 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001249/0.9405, allocations: 35.78 kB / 1.121 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.9406, allocations: 43.42 kB / 1.121 GB, free: 14.08 MB / 0.7292 GB Notification: Performance of SimCode: time 3.71e-07/0.9406, allocations: 0 / 1.121 GB, free: 14.08 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.9621, allocations: 4.219 MB / 1.125 GB, free: 10.09 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/0.9624, allocations: 212.2 kB / 1.125 GB, free: 9.855 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.632, allocations: 0 / 1.125 GB, free: 9.855 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)