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.653/1.653, allocations: 285.6 MB / 293.1 MB, free: 10.16 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.001329/0.001329, allocations: 184.8 kB / 361.4 MB, free: 6.664 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.613/1.613, allocations: 205.2 MB / 0.62 GB, free: 11.66 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.0008334/0.0008332, allocations: 97.8 kB / 0.733 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.737e-05, allocations: 4 kB / 0.8518 GB, free: 2.684 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6622/0.6623, allocations: 115.3 MB / 0.9644 GB, free: 78.67 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.8697, allocations: 141.2 MB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.87, allocations: 79.95 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01458/0.8846, allocations: 5.358 MB / 1.108 GB, free: 9.246 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.884e-06/0.8846, allocations: 4.625 kB / 1.108 GB, free: 9.242 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.875e-05/0.8846, allocations: 8 kB / 1.108 GB, free: 9.234 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.0006157/0.8853, allocations: 457 kB / 1.108 GB, free: 8.738 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.8853, allocations: 12.69 kB / 1.108 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.8854, allocations: 20.84 kB / 1.108 GB, free: 8.707 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.8858, allocations: 256.2 kB / 1.108 GB, free: 8.414 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.8858, allocations: 8.672 kB / 1.108 GB, free: 8.406 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.8859, allocations: 4 kB / 1.108 GB, free: 8.402 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001066/0.886, allocations: 32.95 kB / 1.108 GB, free: 8.371 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001476/0.8861, allocations: 84.84 kB / 1.109 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.8862, allocations: 4.719 kB / 1.109 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.8862, allocations: 0 / 1.109 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.8862, allocations: 4.516 kB / 1.109 GB, free: 8.266 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.8867, allocations: 346.8 kB / 1.109 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.8869, allocations: 83.92 kB / 1.109 GB, free: 7.801 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.887, allocations: 29.73 kB / 1.109 GB, free: 7.77 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.887, allocations: 0 / 1.109 GB, free: 7.77 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.8871, allocations: 90.72 kB / 1.109 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.8871, allocations: 0 / 1.109 GB, free: 7.672 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.000303/0.8874, allocations: 109.4 kB / 1.109 GB, free: 7.559 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.438e-05/0.8875, allocations: 104.6 kB / 1.109 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.8878, allocations: 230 kB / 1.11 GB, free: 7.199 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.8878, allocations: 33.69 kB / 1.11 GB, free: 7.16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.8879, allocations: 120.1 kB / 1.11 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.8879, allocations: 19.72 kB / 1.11 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.8879, allocations: 0 / 1.11 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.888, allocations: 334.8 kB / 1.11 GB, free: 6.684 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.141e-05/0.8881, allocations: 23.98 kB / 1.11 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.31e-05/0.8882, allocations: 64.28 kB / 1.11 GB, free: 6.582 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.619e-05/0.8883, allocations: 35.19 kB / 1.11 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.8883, allocations: 4 kB / 1.11 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001782/0.8885, allocations: 109.4 kB / 1.11 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.8885, allocations: 4 kB / 1.11 GB, free: 6.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.8885, allocations: 0 / 1.11 GB, free: 6.43 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.8885, allocations: 5.594 kB / 1.11 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.116e-05/0.8886, allocations: 8 kB / 1.11 GB, free: 6.418 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.8886, allocations: 0 / 1.11 GB, free: 6.418 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.583e-05/0.8887, allocations: 13.89 kB / 1.11 GB, free: 6.406 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.8887, allocations: 8 kB / 1.11 GB, free: 6.398 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 8.841e-05/0.8888, allocations: 112.9 kB / 1.11 GB, free: 6.281 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001823/0.889, allocations: 113.4 kB / 1.11 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.889, allocations: 19.8 kB / 1.11 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.8893, allocations: 127.4 kB / 1.111 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.8893, allocations: 0 / 1.111 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.8893, allocations: 0 / 1.111 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.8893, allocations: 11.94 kB / 1.111 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.8895, allocations: 205.1 kB / 1.111 GB, free: 5.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8895, allocations: 0 / 1.111 GB, free: 5.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.8e-05/0.8896, allocations: 11.98 kB / 1.111 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.8896, allocations: 2 kB / 1.111 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.8896, allocations: 4 kB / 1.111 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.8896, allocations: 0 / 1.111 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.8896, allocations: 0 / 1.111 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.8899, allocations: 148.8 kB / 1.111 GB, free: 5.59 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.89, allocations: 104.9 kB / 1.111 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.89, allocations: 4 kB / 1.111 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.836e-05/0.8901, allocations: 0 / 1.111 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.8901, allocations: 7.984 kB / 1.111 GB, free: 5.457 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.8901, allocations: 8 kB / 1.111 GB, free: 5.449 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001652/0.8903, allocations: 188.2 kB / 1.111 GB, free: 5.266 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8903, allocations: 4 kB / 1.111 GB, free: 5.262 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000272/0.8906, allocations: 47.92 kB / 1.111 GB, free: 5.215 MB / 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.001162/0.8918, allocations: 0.9558 MB / 1.112 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001788/0.892, allocations: 71.91 kB / 1.112 GB, free: 4.301 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.892, allocations: 4.062 kB / 1.112 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.761e-05/0.892, allocations: 41.19 kB / 1.112 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.8923, allocations: 30.77 kB / 1.112 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005863/0.8929, allocations: 289.8 kB / 1.113 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.8932, allocations: 0.7279 MB / 1.113 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.837e-05/0.8933, allocations: 28.64 kB / 1.113 GB, free: 3.137 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.742e-05/0.8934, allocations: 47.42 kB / 1.113 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.8934, allocations: 4 kB / 1.113 GB, free: 3.086 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.9148, allocations: 3.803 MB / 1.117 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.915, allocations: 185.9 kB / 1.117 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.581/2.496, allocations: 1.125 kB / 1.117 GB, free: 15.19 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)