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.357/1.357, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001022/0.001022, allocations: 188.4 kB / 326.5 MB, free: 2.223 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.612/1.612, allocations: 205.4 MB / 0.5775 GB, free: 20.22 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.0008275/0.0008275, allocations: 96.38 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002943, allocations: 9.875 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1979, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.371, allocations: 135.7 MB / 1.033 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3713, allocations: 83.95 kB / 1.033 GB, free: 7.961 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0151/0.3864, allocations: 5.416 MB / 1.038 GB, free: 2.543 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3864, allocations: 0 / 1.038 GB, free: 2.543 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.569e-05/0.3865, allocations: 4 kB / 1.038 GB, free: 2.539 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.0007034/0.3872, allocations: 0.4884 MB / 1.038 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.3872, allocations: 12.03 kB / 1.038 GB, free: 1.984 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.3873, allocations: 19.8 kB / 1.038 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.3877, allocations: 263.6 kB / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3877, allocations: 0 / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.3878, allocations: 4 kB / 1.039 GB, free: 1.66 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.388, allocations: 100.1 kB / 1.039 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.388, allocations: 0 / 1.039 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.388, allocations: 0 / 1.039 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.388, allocations: 8 kB / 1.039 GB, free: 1.539 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.3882, allocations: 39.97 kB / 1.039 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005758/0.3887, allocations: 372.7 kB / 1.039 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.389, allocations: 94.67 kB / 1.039 GB, free: 0.9844 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.389, allocations: 4 kB / 1.039 GB, free: 0.9805 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.3892, allocations: 91.33 kB / 1.039 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 4.218e-06/0.3892, allocations: 0 / 1.039 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.0003917/0.3896, allocations: 226.6 kB / 1.04 GB, free: 0.6328 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.3897, allocations: 106.8 kB / 1.04 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002618/0.39, allocations: 246 kB / 1.04 GB, free: 264 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.39, allocations: 29.7 kB / 1.04 GB, free: 228 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.3901, allocations: 116.1 kB / 1.04 GB, free: 108 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.978e-05/0.3901, allocations: 19.8 kB / 1.04 GB, free: 88 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.3901, allocations: 0 / 1.04 GB, free: 88 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3903, allocations: 326.8 kB / 1.04 GB, free: 15.76 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.851e-05/0.3904, allocations: 27.98 kB / 1.04 GB, free: 15.73 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.3905, allocations: 76.27 kB / 1.041 GB, free: 15.64 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.3906, allocations: 35.92 kB / 1.041 GB, free: 15.61 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3906, allocations: 0 / 1.041 GB, free: 15.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002235/0.3909, allocations: 113.5 kB / 1.041 GB, free: 15.49 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3909, allocations: 4 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3909, allocations: 4 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3909, allocations: 3.938 kB / 1.041 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.726e-05/0.391, allocations: 15.98 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.391, allocations: 4 kB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.753e-05/0.3911, allocations: 15.89 kB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.3911, allocations: 0 / 1.041 GB, free: 15.44 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.0001423/0.3913, allocations: 148 kB / 1.041 GB, free: 15.29 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.3913, allocations: 15.81 kB / 1.041 GB, free: 15.27 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002939/0.3916, allocations: 135 kB / 1.041 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.3916, allocations: 7.938 kB / 1.041 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3917, allocations: 0 / 1.041 GB, free: 15.12 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3917, allocations: 4 kB / 1.041 GB, free: 15.11 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.3919, allocations: 233.5 kB / 1.041 GB, free: 14.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3919, allocations: 0 / 1.041 GB, free: 14.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.416e-05/0.392, allocations: 4 kB / 1.041 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.392, allocations: 0 / 1.041 GB, free: 14.83 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.392, allocations: 7.984 kB / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.392, allocations: 0 / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.392, allocations: 0 / 1.041 GB, free: 14.82 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002567/0.3923, allocations: 156.8 kB / 1.041 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.611e-05/0.3924, allocations: 104.9 kB / 1.042 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.3924, allocations: 0 / 1.042 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.3925, allocations: 8 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.3925, allocations: 11.98 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.3926, allocations: 4 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001968/0.3928, allocations: 204.1 kB / 1.042 GB, free: 14.31 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3928, allocations: 0 / 1.042 GB, free: 14.31 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002886/0.3931, allocations: 51.92 kB / 1.042 GB, free: 14.26 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.0009913/0.3941, allocations: 441.2 kB / 1.042 GB, free: 13.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.3943, allocations: 75.95 kB / 1.042 GB, free: 13.91 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3943, allocations: 3.938 kB / 1.042 GB, free: 13.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.24e-05/0.3944, allocations: 39.98 kB / 1.042 GB, free: 13.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.3947, allocations: 37.89 kB / 1.042 GB, free: 13.83 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000553/0.3953, allocations: 334.7 kB / 1.043 GB, free: 13.48 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.3956, allocations: 0.7282 MB / 1.043 GB, free: 12.72 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 8.755e-05/0.3957, allocations: 33.36 kB / 1.043 GB, free: 12.69 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.24e-05/0.3958, allocations: 19.42 kB / 1.043 GB, free: 12.67 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/0.3958, allocations: 0 / 1.043 GB, free: 12.67 MB / 0.698 GB Notification: Performance of Templates: time 0.005513/0.4013, allocations: 2.472 MB / 1.046 GB, free: 10.21 MB / 0.698 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