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: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.533/1.533, allocations: 249.5 MB / 257 MB, free: 6.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001134, allocations: 184.9 kB / 316.3 MB, free: 3.262 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.932/1.932, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.001105/0.001105, allocations: 88.5 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.807e-05/1.81e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2376, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7475/0.9852, allocations: 135.9 MB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.9855, allocations: 86.53 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01489/1, allocations: 5.363 MB / 1.023 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.343e-06/1, allocations: 0 / 1.023 GB, free: 13.47 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.657e-05/1, allocations: 4 kB / 1.023 GB, free: 13.46 MB / 0.6511 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.000585/1.001, allocations: 460.2 kB / 1.024 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/1.001, allocations: 8.031 kB / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/1.001, allocations: 15.81 kB / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/1.002, allocations: 264.2 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/1.002, allocations: 4 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/1.002, allocations: 0 / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001015/1.002, allocations: 39.61 kB / 1.024 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/1.002, allocations: 87.48 kB / 1.024 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/1.002, allocations: 0 / 1.024 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/1.002, allocations: 0 / 1.024 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/1.002, allocations: 4 kB / 1.024 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000497/1.002, allocations: 344.3 kB / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/1.003, allocations: 83.52 kB / 1.024 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.703e-05/1.003, allocations: 32.53 kB / 1.025 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/1.003, allocations: 0 / 1.025 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/1.003, allocations: 85.64 kB / 1.025 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 2.986e-06/1.003, allocations: 4 kB / 1.025 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002595/1.003, allocations: 99.42 kB / 1.025 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/1.003, allocations: 114.2 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/1.003, allocations: 232.1 kB / 1.025 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/1.003, allocations: 25.7 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/1.004, allocations: 123.8 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/1.004, allocations: 18.25 kB / 1.025 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-06/1.004, allocations: 0 / 1.025 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001303/1.004, allocations: 341.2 kB / 1.026 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.963e-05/1.004, allocations: 24.31 kB / 1.026 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-05/1.004, allocations: 64.22 kB / 1.026 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.57e-05/1.004, allocations: 32.22 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/1.004, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001832/1.004, allocations: 110.8 kB / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.004, allocations: 4 kB / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/1.004, allocations: 4.031 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/1.004, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/1.004, allocations: 15.98 kB / 1.026 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/1.004, allocations: 0 / 1.026 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.54e-05/1.004, allocations: 7.906 kB / 1.026 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/1.004, allocations: 11.58 kB / 1.026 GB, free: 10.88 MB / 0.6511 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 9.027e-05/1.005, allocations: 106.7 kB / 1.026 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/1.005, allocations: 19.8 kB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/1.005, allocations: 133.2 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/1.005, allocations: 4 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.005, allocations: 0 / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/1.005, allocations: 0 / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/1.005, allocations: 204.1 kB / 1.026 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/1.005, allocations: 0 / 1.026 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.923e-05/1.005, allocations: 15.92 kB / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/1.005, allocations: 3.938 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/1.005, allocations: 3.688 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.005, allocations: 4 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/1.005, allocations: 4 kB / 1.026 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/1.005, allocations: 143.3 kB / 1.026 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/1.005, allocations: 96.55 kB / 1.026 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/1.005, allocations: 3.984 kB / 1.026 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.773e-05/1.006, allocations: 4 kB / 1.027 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.177e-05/1.006, allocations: 11.73 kB / 1.027 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/1.006, allocations: 4 kB / 1.027 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000156/1.006, allocations: 196 kB / 1.027 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.61e-07/1.006, allocations: 0 / 1.027 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000264/1.006, allocations: 47.48 kB / 1.027 GB, free: 9.922 MB / 0.6511 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.0008456/1.007, allocations: 371.7 kB / 1.027 GB, free: 9.641 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001872/1.007, allocations: 77.97 kB / 1.027 GB, free: 9.582 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.007, allocations: 0 / 1.027 GB, free: 9.582 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/1.007, allocations: 34.88 kB / 1.027 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/1.007, allocations: 32.52 kB / 1.027 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000399/1.008, allocations: 218.1 kB / 1.027 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/1.008, allocations: 0.7313 MB / 1.028 GB, free: 8.57 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.564e-05/1.008, allocations: 29.25 kB / 1.028 GB, free: 8.543 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/1.008, allocations: 26.98 kB / 1.028 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of SimCode: time 2.7e-07/1.008, allocations: 0 / 1.028 GB, free: 8.52 MB / 0.6511 GB Notification: Performance of Templates: time 0.005288/1.014, allocations: 2.361 MB / 1.031 GB, free: 6.188 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches