Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.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.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.396/1.396, 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.001356/0.001356, allocations: 183.5 kB / 326.5 MB, free: 2.234 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.967/1.967, allocations: 205.4 MB / 0.5775 GB, free: 20.55 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.001069/0.001069, allocations: 90.38 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003741, allocations: 8.156 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2774, allocations: 106.3 MB / 0.9001 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1968/0.4742, allocations: 135.7 MB / 1.033 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.4745, allocations: 83.95 kB / 1.033 GB, free: 8.375 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01654/0.4911, allocations: 5.416 MB / 1.038 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4911, allocations: 0 / 1.038 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.331e-05/0.4912, allocations: 4 kB / 1.038 GB, free: 2.953 MB / 0.6823 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.0008516/0.492, allocations: 0.4885 MB / 1.039 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.4921, allocations: 16.03 kB / 1.039 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.955e-05/0.4922, allocations: 38.55 kB / 1.039 GB, free: 2.348 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.505e-05/0.4922, allocations: 15.81 kB / 1.039 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.4928, allocations: 263.6 kB / 1.039 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.4928, allocations: 0 / 1.039 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.4928, allocations: 7.938 kB / 1.039 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002429/0.4931, allocations: 96.17 kB / 1.039 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.4931, allocations: 4 kB / 1.039 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.4931, allocations: 0 / 1.039 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.4931, allocations: 7.984 kB / 1.039 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.4933, allocations: 35.98 kB / 1.039 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000724/0.494, allocations: 380.5 kB / 1.039 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.4943, allocations: 86.66 kB / 1.039 GB, free: 1.352 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.4943, allocations: 11.92 kB / 1.039 GB, free: 1.34 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.4945, allocations: 79.44 kB / 1.04 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 2.345e-06/0.4945, allocations: 0 / 1.04 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0005059/0.4951, allocations: 222.6 kB / 1.04 GB, free: 1.008 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.4951, allocations: 106.8 kB / 1.04 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003255/0.4955, allocations: 250.1 kB / 1.04 GB, free: 0.6289 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.4955, allocations: 25.7 kB / 1.04 GB, free: 0.5977 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.846e-05/0.4956, allocations: 116.2 kB / 1.04 GB, free: 492 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.679e-05/0.4957, allocations: 23.69 kB / 1.04 GB, free: 468 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-06/0.4957, allocations: 4 kB / 1.04 GB, free: 464 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4959, allocations: 326.8 kB / 1.041 GB, free: 128 kB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.178e-05/0.496, allocations: 27.98 kB / 1.041 GB, free: 100 kB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.4961, allocations: 80.2 kB / 1.041 GB, free: 4 kB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.4962, allocations: 32.06 kB / 1.041 GB, free: 15.97 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.4962, allocations: 0 / 1.041 GB, free: 15.97 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002666/0.4965, allocations: 113.4 kB / 1.041 GB, free: 15.85 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.4965, allocations: 8 kB / 1.041 GB, free: 15.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4966, allocations: 0 / 1.041 GB, free: 15.84 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4966, allocations: 0 / 1.041 GB, free: 15.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.4967, allocations: 15.98 kB / 1.041 GB, free: 15.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.4967, allocations: 7.984 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.009e-05/0.4968, allocations: 4.188 kB / 1.041 GB, free: 15.82 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.4968, allocations: 7.984 kB / 1.041 GB, free: 15.81 MB / 0.698 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 () * 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.0001649/0.497, allocations: 145.7 kB / 1.041 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.497, allocations: 15.81 kB / 1.041 GB, free: 15.64 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003065/0.4974, allocations: 139.2 kB / 1.041 GB, free: 15.49 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.4974, allocations: 4 kB / 1.041 GB, free: 15.49 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4974, allocations: 8 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.4974, allocations: 3.953 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.4977, allocations: 225.6 kB / 1.041 GB, free: 15.21 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4977, allocations: 0 / 1.041 GB, free: 15.21 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.206e-05/0.4977, allocations: 7.984 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.4977, allocations: 0 / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.4978, allocations: 4 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.4978, allocations: 3.938 kB / 1.041 GB, free: 15.19 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4978, allocations: 0 / 1.041 GB, free: 15.19 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002723/0.4981, allocations: 156.8 kB / 1.042 GB, free: 15.02 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.697e-05/0.4982, allocations: 100.9 kB / 1.042 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.4982, allocations: 4 kB / 1.042 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.833e-05/0.4983, allocations: 4 kB / 1.042 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.4983, allocations: 7.984 kB / 1.042 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4983, allocations: 4 kB / 1.042 GB, free: 14.88 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002123/0.4986, allocations: 208.1 kB / 1.042 GB, free: 14.68 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4986, allocations: 0 / 1.042 GB, free: 14.68 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003201/0.4989, allocations: 59.83 kB / 1.042 GB, free: 14.62 MB / 0.698 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) * Number of clocked states: 0 () * 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.001788/0.5007, allocations: 1.019 MB / 1.043 GB, free: 13.73 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002717/0.501, allocations: 83.95 kB / 1.043 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.501, allocations: 4.062 kB / 1.043 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.648e-05/0.5011, allocations: 39.91 kB / 1.043 GB, free: 13.61 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.5014, allocations: 32.48 kB / 1.043 GB, free: 13.58 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.5031, allocations: 1.126 MB / 1.044 GB, free: 12.39 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.5035, allocations: 0.7398 MB / 1.045 GB, free: 11.62 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001014/0.5036, allocations: 25.38 kB / 1.045 GB, free: 11.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.5037, allocations: 55.34 kB / 1.045 GB, free: 11.55 MB / 0.698 GB Notification: Performance of SimCode: time 4.01e-07/0.5037, allocations: 4 kB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.5219, allocations: 4.253 MB / 1.049 GB, free: 7.414 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.5221, allocations: 229.1 kB / 1.049 GB, free: 7.172 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.239, allocations: 64 / 1.049 GB, free: 7.172 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)