Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001666/0.001665, allocations: 103.1 kB / 16.41 MB, free: 6.461 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.001922/0.001922, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.398/1.398, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.556/2.556, allocations: 461.9 MB / 0.7355 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 60.12 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7683/0.7697, allocations: 157.4 MB / 1.208 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002727/0.7725, allocations: 1.78 MB / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.774, allocations: 1.087 MB / 1.211 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.382e-05/0.7741, allocations: 3.938 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.7744, allocations: 59.67 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.7746, allocations: 83.61 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.7752, allocations: 222.5 kB / 1.212 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000192/0.7754, allocations: 155.6 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.281e-05/0.7755, allocations: 21.11 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.163e-05/0.7756, allocations: 59.77 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.7757, allocations: 67.75 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.244e-05/0.7757, allocations: 4 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.7759, allocations: 79.88 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.776, allocations: 35.84 kB / 1.212 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.342e-05/0.7761, allocations: 51.67 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.7763, allocations: 205.2 kB / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.7764, allocations: 0 / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.422e-06/0.7764, allocations: 4 kB / 1.212 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.355e-06/0.7764, allocations: 0 / 1.212 GB, free: 9.82 MB / 0.9356 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.0006053/0.777, allocations: 496.3 kB / 1.213 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.777, allocations: 12.03 kB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.462e-05/0.7771, allocations: 16.73 kB / 1.213 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.7774, allocations: 244.9 kB / 1.213 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.467e-05/0.7774, allocations: 4.375 kB / 1.213 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.7774, allocations: 12.12 kB / 1.213 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001898/0.7776, allocations: 100.1 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.7776, allocations: 4 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.7777, allocations: 0 / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.7777, allocations: 0 / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.7778, allocations: 39.92 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.7783, allocations: 348.7 kB / 1.213 GB, free: 8.41 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.7785, allocations: 90.75 kB / 1.214 GB, free: 8.312 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.206e-05/0.7786, allocations: 36.78 kB / 1.214 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.7786, allocations: 0 / 1.214 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.7788, allocations: 83.38 kB / 1.214 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.7788, allocations: 4 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.000335/0.7791, allocations: 137.4 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.7792, allocations: 110.8 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.7794, allocations: 270.9 kB / 1.214 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.7795, allocations: 25.7 kB / 1.214 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.7795, allocations: 120.1 kB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.7796, allocations: 23.66 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.7796, allocations: 25.7 kB / 1.214 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.7797, allocations: 334.8 kB / 1.215 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.038e-05/0.7798, allocations: 27.92 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.248e-05/0.7799, allocations: 72.27 kB / 1.215 GB, free: 6.969 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.7801, allocations: 73.62 kB / 1.215 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7801, allocations: 0 / 1.215 GB, free: 6.891 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002311/0.7803, allocations: 109.5 kB / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.7803, allocations: 7.984 kB / 1.215 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.7803, allocations: 8.031 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.7804, allocations: 4 kB / 1.215 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.231e-05/0.7805, allocations: 11.94 kB / 1.215 GB, free: 6.746 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.7805, allocations: 4 kB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.479e-05/0.7805, allocations: 7.969 kB / 1.215 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.7806, allocations: 7.984 kB / 1.215 GB, free: 6.727 MB / 0.9356 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.0001205/0.7807, allocations: 141.8 kB / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.7807, allocations: 15.81 kB / 1.215 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.7808, allocations: 17.39 kB / 1.215 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.7808, allocations: 8 kB / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7808, allocations: 0 / 1.215 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.7808, allocations: 3.938 kB / 1.215 GB, free: 6.531 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.781, allocations: 229.4 kB / 1.215 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.781, allocations: 0 / 1.215 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.781, allocations: 8 kB / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.781, allocations: 0 / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.7811, allocations: 3.984 kB / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7811, allocations: 0 / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7811, allocations: 0 / 1.215 GB, free: 6.246 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.7813, allocations: 148.8 kB / 1.216 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.774e-05/0.7814, allocations: 93.02 kB / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.773e-05/0.7814, allocations: 0 / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.299e-05/0.7815, allocations: 0 / 1.216 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.7815, allocations: 11.98 kB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.7815, allocations: 8.125 kB / 1.216 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000168/0.7817, allocations: 200.4 kB / 1.216 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7817, allocations: 7.938 kB / 1.216 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002465/0.782, allocations: 35.91 kB / 1.216 GB, free: 5.715 MB / 0.9356 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.0009344/0.7829, allocations: 428.8 kB / 1.216 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002177/0.7831, allocations: 67.91 kB / 1.216 GB, free: 5.383 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7831, allocations: 4 kB / 1.216 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.731e-05/0.7832, allocations: 35.97 kB / 1.216 GB, free: 5.344 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.7835, allocations: 48.83 kB / 1.216 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004944/0.784, allocations: 324.5 kB / 1.217 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.7843, allocations: 0.7201 MB / 1.217 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.703e-05/0.7844, allocations: 23.42 kB / 1.217 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.7844, allocations: 0 / 1.217 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of Templates: time 0.004314/0.7887, allocations: 2.603 MB / 1.22 GB, free: 1.594 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches