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.439/1.439, allocations: 249.3 MB / 261.9 MB, free: 5.82 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.001556/0.001556, allocations: 176.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0008433/0.0008431, allocations: 94.53 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.816e-05/4.819e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3111, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9034/1.215, allocations: 135.6 MB / 1.024 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/1.215, allocations: 77.95 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01494/1.23, allocations: 5.404 MB / 1.03 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.084e-06/1.23, allocations: 3.938 kB / 1.03 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.843e-05/1.23, allocations: 4 kB / 1.03 GB, free: 10.6 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.0006308/1.231, allocations: 463 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.231, allocations: 8.031 kB / 1.03 GB, free: 10.1 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/1.231, allocations: 15.81 kB / 1.03 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/1.231, allocations: 260.6 kB / 1.03 GB, free: 9.809 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/1.231, allocations: 4 kB / 1.03 GB, free: 9.805 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/1.231, allocations: 8 kB / 1.03 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/1.231, allocations: 93.3 kB / 1.03 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/1.231, allocations: 0 / 1.03 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/1.231, allocations: 3.062 kB / 1.03 GB, free: 9.703 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/1.231, allocations: 4 kB / 1.03 GB, free: 9.699 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.701e-05/1.232, allocations: 29.8 kB / 1.03 GB, free: 9.68 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006109/1.232, allocations: 379.3 kB / 1.031 GB, free: 9.301 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/1.232, allocations: 87.92 kB / 1.031 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.899e-05/1.232, allocations: 30.86 kB / 1.031 GB, free: 9.203 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/1.232, allocations: 0 / 1.031 GB, free: 9.203 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/1.233, allocations: 88.28 kB / 1.031 GB, free: 9.117 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/1.233, allocations: 0 / 1.031 GB, free: 9.117 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.0002688/1.233, allocations: 106.4 kB / 1.031 GB, free: 9.023 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/1.233, allocations: 110.8 kB / 1.031 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/1.233, allocations: 251.7 kB / 1.031 GB, free: 8.676 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/1.233, allocations: 25.7 kB / 1.031 GB, free: 8.645 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.214e-05/1.233, allocations: 116.6 kB / 1.032 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/1.233, allocations: 23.23 kB / 1.032 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-06/1.233, allocations: 0 / 1.032 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001594/1.234, allocations: 329.4 kB / 1.032 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.036e-05/1.234, allocations: 28.17 kB / 1.032 GB, free: 8.188 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.185e-05/1.234, allocations: 72.28 kB / 1.032 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.391e-05/1.234, allocations: 30.61 kB / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.234, allocations: 0 / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001691/1.234, allocations: 118.5 kB / 1.032 GB, free: 7.988 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/1.234, allocations: 4 kB / 1.032 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/1.234, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/1.234, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001016/1.234, allocations: 15.98 kB / 1.032 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/1.234, allocations: 3.953 kB / 1.032 GB, free: 7.965 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.634e-05/1.234, allocations: 11.41 kB / 1.032 GB, free: 7.957 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/1.234, allocations: 7.984 kB / 1.032 GB, free: 7.949 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.252e-05/1.234, allocations: 109.9 kB / 1.032 GB, free: 7.84 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/1.234, allocations: 19.84 kB / 1.032 GB, free: 7.82 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/1.235, allocations: 135 kB / 1.032 GB, free: 7.707 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.235, allocations: 7.984 kB / 1.032 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.235, allocations: 0 / 1.032 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/1.235, allocations: 3.953 kB / 1.032 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002104/1.235, allocations: 228.5 kB / 1.033 GB, free: 7.449 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.235, allocations: 0 / 1.033 GB, free: 7.449 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.702e-05/1.235, allocations: 7.938 kB / 1.033 GB, free: 7.441 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/1.235, allocations: 3.938 kB / 1.033 GB, free: 7.438 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/1.235, allocations: 11.98 kB / 1.033 GB, free: 7.426 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/1.235, allocations: 0 / 1.033 GB, free: 7.426 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/1.235, allocations: 0 / 1.033 GB, free: 7.426 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/1.235, allocations: 137.5 kB / 1.033 GB, free: 7.293 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.793e-05/1.235, allocations: 104 kB / 1.033 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/1.235, allocations: 7.859 kB / 1.033 GB, free: 7.172 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.269e-05/1.236, allocations: 7.984 kB / 1.033 GB, free: 7.164 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/1.236, allocations: 7.938 kB / 1.033 GB, free: 7.156 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/1.236, allocations: 15.42 kB / 1.033 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001914/1.236, allocations: 191.5 kB / 1.033 GB, free: 6.988 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.236, allocations: 0 / 1.033 GB, free: 6.988 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002602/1.236, allocations: 47.12 kB / 1.033 GB, free: 6.949 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.001045/1.237, allocations: 399.6 kB / 1.034 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002056/1.237, allocations: 81.52 kB / 1.034 GB, free: 6.594 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.237, allocations: 0 / 1.034 GB, free: 6.594 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.963e-05/1.237, allocations: 47.81 kB / 1.034 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/1.238, allocations: 34.8 kB / 1.034 GB, free: 6.527 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/1.238, allocations: 214.5 kB / 1.034 GB, free: 6.328 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000368/1.239, allocations: 0.7308 MB / 1.035 GB, free: 5.574 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.246e-05/1.239, allocations: 33.14 kB / 1.035 GB, free: 5.543 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.974e-05/1.239, allocations: 19.25 kB / 1.035 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of SimCode: time 6.31e-07/1.239, allocations: 0 / 1.035 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of Templates: time 0.005743/1.244, allocations: 2.493 MB / 1.037 GB, free: 3.059 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