Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006929/0.006929, allocations: 98.27 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 192.9 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.618/2.618, allocations: 437 MB / 0.7105 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.78 kB / 1.019 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8577/0.8589, allocations: 151.6 MB / 1.167 GB, free: 4.035 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003635/0.8626, allocations: 1.772 MB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001856/0.8645, allocations: 1.1 MB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.498e-05/0.8646, allocations: 0 / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.865, allocations: 63.73 kB / 1.169 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.8653, allocations: 79.67 kB / 1.17 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006653/0.866, allocations: 222.7 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.8662, allocations: 147.7 kB / 1.17 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.8664, allocations: 25.11 kB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.8665, allocations: 59.77 kB / 1.17 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.8666, allocations: 67.69 kB / 1.17 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.8667, allocations: 4 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.8669, allocations: 71.94 kB / 1.17 GB, free: 432 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.867, allocations: 43.84 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.8671, allocations: 55.61 kB / 1.17 GB, free: 332 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.8676, allocations: 200.2 kB / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.8676, allocations: 0 / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.262e-06/0.8676, allocations: 0 / 1.17 GB, free: 132 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.254e-05/0.8676, allocations: 4 kB / 1.17 GB, free: 128 kB / 0.8887 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.0008108/0.8684, allocations: 0.4981 MB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.8685, allocations: 8.922 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/0.8685, allocations: 16.84 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.8689, allocations: 257 kB / 1.171 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.8689, allocations: 4.375 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.8689, allocations: 8.125 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.8691, allocations: 100.2 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.8691, allocations: 4 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.8692, allocations: 3.938 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.8692, allocations: 0 / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.8693, allocations: 31.98 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/0.8698, allocations: 356.7 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.8701, allocations: 94.69 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.18e-05/0.8701, allocations: 32.84 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.8702, allocations: 0 / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/0.8703, allocations: 79.38 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.8704, allocations: 0 / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0003569/0.8707, allocations: 157.7 kB / 1.172 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/0.8708, allocations: 102.8 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.8711, allocations: 267 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.8711, allocations: 25.7 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.8712, allocations: 120.1 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.8712, allocations: 19.8 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/0.8713, allocations: 29.7 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.8714, allocations: 330.8 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.106e-05/0.8715, allocations: 31.98 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.8716, allocations: 64.27 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.8718, allocations: 69.64 kB / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.8718, allocations: 0 / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002387/0.872, allocations: 121.5 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.872, allocations: 8 kB / 1.173 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.872, allocations: 0 / 1.173 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.8721, allocations: 8.031 kB / 1.173 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.8722, allocations: 8 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.8722, allocations: 4 kB / 1.173 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.125e-05/0.8723, allocations: 11.92 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.8723, allocations: 4 kB / 1.173 GB, free: 13.02 MB / 0.9044 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000133/0.8724, allocations: 141.8 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.8725, allocations: 23.86 kB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.777e-05/0.8725, allocations: 17.39 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.8726, allocations: 4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.8726, allocations: 0 / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.8726, allocations: 7.875 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.8728, allocations: 217.8 kB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.8728, allocations: 0 / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.802e-05/0.8729, allocations: 15.94 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.8729, allocations: 0 / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.8729, allocations: 3.984 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8729, allocations: 0 / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8729, allocations: 4 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.8732, allocations: 144.9 kB / 1.174 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.954e-05/0.8733, allocations: 89.02 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.8733, allocations: 8 kB / 1.174 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.361e-05/0.8734, allocations: 0 / 1.174 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.675e-05/0.8734, allocations: 7.984 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.8734, allocations: 11.94 kB / 1.174 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001887/0.8736, allocations: 204.4 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8736, allocations: 7.875 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002553/0.8739, allocations: 27.94 kB / 1.174 GB, free: 12 MB / 0.9044 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001049/0.875, allocations: 431.5 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000248/0.8752, allocations: 63.97 kB / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8752, allocations: 0 / 1.175 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.8753, allocations: 43.97 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.8757, allocations: 38.73 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004878/0.8762, allocations: 294.5 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.8764, allocations: 0.7162 MB / 1.176 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.503e-05/0.8765, allocations: 29.38 kB / 1.176 GB, free: 10.51 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.8766, allocations: 23.42 kB / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of SimCode: time 2.51e-07/0.8766, allocations: 0 / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of Templates: time 0.005684/0.8823, allocations: 2.547 MB / 1.178 GB, free: 7.969 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches