Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001474/0.001474, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001537/0.001537, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.399/1.399, 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 9.1.3-maint.9.1.x/package.mo): time 2.246/2.246, allocations: 390.2 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 71.89 kB / 0.9515 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9898/0.9912, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003112/0.9944, allocations: 1.768 MB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00187/0.9963, allocations: 1.108 MB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.093e-05/0.9964, allocations: 2.25 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003429/0.9967, allocations: 61.12 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.997, allocations: 76.47 kB / 1.092 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.9976, allocations: 227.3 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.9978, allocations: 145.4 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.998, allocations: 19.02 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.9981, allocations: 71.88 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.9982, allocations: 66 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.9982, allocations: 7.062 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.9984, allocations: 75.34 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.9985, allocations: 38.8 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.443e-05/0.9986, allocations: 55.33 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.9989, allocations: 205.9 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.9989, allocations: 0 / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9989, allocations: 0 / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.9989, allocations: 0.7812 kB / 1.092 GB, free: 3.039 MB / 0.8575 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.0006176/0.9995, allocations: 489.1 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.9996, allocations: 9.969 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.744e-05/0.9996, allocations: 16.62 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/1, allocations: 249.8 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/1, allocations: 2.859 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/1, allocations: 7.781 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/1, allocations: 105 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/1, allocations: 5.031 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/1, allocations: 0.625 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/1, allocations: 2.859 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/1, allocations: 35.06 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/1.001, allocations: 355.4 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/1.001, allocations: 83.58 kB / 1.094 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.353e-05/1.001, allocations: 43.61 kB / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/1.001, allocations: 5.375 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/1.001, allocations: 80 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.565e-06/1.001, allocations: 3.984 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0003572/1.002, allocations: 145.8 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/1.002, allocations: 109 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/1.002, allocations: 265.8 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/1.002, allocations: 26.98 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.664e-05/1.002, allocations: 116.9 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/1.002, allocations: 21.2 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.75e-05/1.002, allocations: 29.61 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.038e-05/1.002, allocations: 328.9 kB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.62e-05/1.002, allocations: 25.55 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/1.003, allocations: 71.67 kB / 1.095 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/1.003, allocations: 70.62 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.003, allocations: 0.75 kB / 1.095 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002229/1.003, allocations: 113.1 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/1.003, allocations: 5.859 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/1.003, allocations: 0.6562 kB / 1.095 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/1.003, allocations: 4.875 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.751e-05/1.003, allocations: 17.22 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/1.003, allocations: 0.5938 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.373e-05/1.003, allocations: 12.94 kB / 1.095 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/1.003, allocations: 2.734 kB / 1.095 GB, free: 0.7461 MB / 0.8575 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.0001041/1.003, allocations: 145.3 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.193e-05/1.003, allocations: 19.78 kB / 1.095 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/1.003, allocations: 22.45 kB / 1.095 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/1.003, allocations: 7.266 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/1.003, allocations: 0 / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/1.003, allocations: 4.547 kB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/1.004, allocations: 219.1 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/1.004, allocations: 0 / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/1.004, allocations: 6.812 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.004, allocations: 0.7812 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/1.004, allocations: 14.09 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/1.004, allocations: 0.7188 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/1.004, allocations: 0.9375 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/1.004, allocations: 146.9 kB / 1.096 GB, free: 268 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/1.004, allocations: 95.56 kB / 1.096 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/1.004, allocations: 6.266 kB / 1.096 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.651e-05/1.004, allocations: 3.375 kB / 1.096 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/1.004, allocations: 7.344 kB / 1.096 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/1.004, allocations: 7.422 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.00019/1.004, allocations: 193.8 kB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.004, allocations: 5.031 kB / 1.096 GB, free: 40 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002668/1.005, allocations: 34.02 kB / 1.096 GB, free: 32 kB / 0.8575 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.001118/1.006, allocations: 422.5 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000265/1.006, allocations: 69.25 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.006, allocations: 4.688 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/1.006, allocations: 32.53 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/1.006, allocations: 43.92 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000617/1.007, allocations: 335.4 kB / 1.097 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/1.007, allocations: 0.7242 MB / 1.098 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.633e-05/1.007, allocations: 20.02 kB / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.007, allocations: 0 / 1.098 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of Templates: time 0.00569/1.013, allocations: 2.606 MB / 1.1 GB, free: 14.55 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches