Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.752/1.752, allocations: 292.6 MB / 307.5 MB, free: 5.191 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.001271/0.001271, allocations: 173.2 kB / 377.1 MB, free: 1.512 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.798/1.798, allocations: 205.4 MB / 0.6366 GB, free: 8.543 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.0009228/0.0009228, allocations: 92.16 kB / 0.7509 GB, free: 63 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004497, allocations: 12 kB / 0.8749 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3057, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7819/1.088, allocations: 143 MB / 1.128 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/1.088, allocations: 78.83 kB / 1.128 GB, free: 32.45 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01409/1.102, allocations: 5.4 MB / 1.133 GB, free: 28.58 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.483e-06/1.102, allocations: 0 / 1.133 GB, free: 28.58 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.685e-05/1.102, allocations: 4 kB / 1.133 GB, free: 28.57 MB / 0.7292 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.0006172/1.103, allocations: 0.4907 MB / 1.134 GB, free: 28.05 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/1.103, allocations: 12.58 kB / 1.134 GB, free: 28.04 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/1.103, allocations: 43.81 kB / 1.134 GB, free: 27.99 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/1.103, allocations: 18.53 kB / 1.134 GB, free: 27.97 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/1.103, allocations: 256 kB / 1.134 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/1.103, allocations: 0 / 1.134 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/1.103, allocations: 8.047 kB / 1.134 GB, free: 27.7 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/1.104, allocations: 103.4 kB / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/1.104, allocations: 0 / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/1.104, allocations: 0.5 kB / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/1.104, allocations: 4.656 kB / 1.134 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.896e-05/1.104, allocations: 34.38 kB / 1.134 GB, free: 27.56 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/1.104, allocations: 384.5 kB / 1.135 GB, free: 27.18 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/1.105, allocations: 94.7 kB / 1.135 GB, free: 27.09 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/1.105, allocations: 0 / 1.135 GB, free: 27.09 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/1.105, allocations: 89.19 kB / 1.135 GB, free: 27.01 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/1.105, allocations: 0 / 1.135 GB, free: 27.01 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0003734/1.105, allocations: 219.6 kB / 1.135 GB, free: 26.79 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/1.105, allocations: 108.1 kB / 1.135 GB, free: 26.66 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/1.106, allocations: 245.5 kB / 1.135 GB, free: 26.43 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/1.106, allocations: 30.36 kB / 1.135 GB, free: 26.4 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/1.106, allocations: 116.4 kB / 1.136 GB, free: 26.29 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/1.106, allocations: 21.19 kB / 1.136 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/1.106, allocations: 0 / 1.136 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.535e-05/1.106, allocations: 332.9 kB / 1.136 GB, free: 25.94 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.767e-05/1.106, allocations: 24.31 kB / 1.136 GB, free: 25.92 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/1.106, allocations: 87.11 kB / 1.136 GB, free: 25.83 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.599e-05/1.106, allocations: 27.19 kB / 1.136 GB, free: 25.8 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.106, allocations: 0 / 1.136 GB, free: 25.8 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000199/1.106, allocations: 115.3 kB / 1.136 GB, free: 25.7 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/1.106, allocations: 4 kB / 1.136 GB, free: 25.69 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/1.106, allocations: 8.828 kB / 1.136 GB, free: 25.68 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/1.106, allocations: 1.5 kB / 1.136 GB, free: 25.68 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-05/1.106, allocations: 14.39 kB / 1.136 GB, free: 25.67 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/1.106, allocations: 8.562 kB / 1.136 GB, free: 25.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.536e-05/1.106, allocations: 9.359 kB / 1.136 GB, free: 25.66 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/1.106, allocations: 1.359 kB / 1.136 GB, free: 25.66 MB / 0.7292 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.0001016/1.107, allocations: 141.5 kB / 1.136 GB, free: 25.51 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/1.107, allocations: 17.58 kB / 1.136 GB, free: 25.5 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002578/1.107, allocations: 136 kB / 1.136 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/1.107, allocations: 4.562 kB / 1.136 GB, free: 25.37 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.107, allocations: 0 / 1.136 GB, free: 25.37 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/1.107, allocations: 0.6094 kB / 1.136 GB, free: 25.37 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/1.107, allocations: 242.3 kB / 1.137 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/1.107, allocations: 0 / 1.137 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-05/1.107, allocations: 9.25 kB / 1.137 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/1.107, allocations: 0.6562 kB / 1.137 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/1.107, allocations: 5.875 kB / 1.137 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/1.107, allocations: 0.6562 kB / 1.137 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/1.107, allocations: 4.75 kB / 1.137 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002252/1.107, allocations: 149.4 kB / 1.137 GB, free: 24.95 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.776e-05/1.108, allocations: 99.5 kB / 1.137 GB, free: 24.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/1.108, allocations: 5.297 kB / 1.137 GB, free: 24.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.912e-05/1.108, allocations: 8.797 kB / 1.137 GB, free: 24.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/1.108, allocations: 13.89 kB / 1.137 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/1.108, allocations: 6.188 kB / 1.137 GB, free: 24.81 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001686/1.108, allocations: 200.3 kB / 1.137 GB, free: 24.63 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.5e-07/1.108, allocations: 0 / 1.137 GB, free: 24.63 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002596/1.108, allocations: 54.03 kB / 1.137 GB, free: 24.58 MB / 0.7292 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.001284/1.109, allocations: 1.02 MB / 1.138 GB, free: 23.75 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002409/1.11, allocations: 78.62 kB / 1.138 GB, free: 23.69 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.11, allocations: 4 kB / 1.138 GB, free: 23.69 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.098e-05/1.11, allocations: 41.7 kB / 1.138 GB, free: 23.65 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/1.11, allocations: 30.84 kB / 1.138 GB, free: 23.63 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/1.112, allocations: 1.14 MB / 1.139 GB, free: 22.54 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/1.112, allocations: 0.7302 MB / 1.14 GB, free: 21.8 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 8.72e-05/1.112, allocations: 23.8 kB / 1.14 GB, free: 21.79 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/1.112, allocations: 45.53 kB / 1.14 GB, free: 21.75 MB / 0.7292 GB Notification: Performance of SimCode: time 2.61e-07/1.112, allocations: 4 kB / 1.14 GB, free: 21.75 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/1.129, allocations: 4.266 MB / 1.144 GB, free: 19.29 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/1.13, allocations: 209.8 kB / 1.145 GB, free: 19.05 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/2.872, allocations: 0 / 1.145 GB, free: 19.05 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)