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.007251/0.00725, allocations: 105.9 kB / 15.73 MB, free: 6 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.001369/0.001369, allocations: 189 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.479/1.479, allocations: 222.9 MB / 240.3 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.65/2.65, allocations: 390.2 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 0.9508 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.149/1.151, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003465/1.154, allocations: 1.765 MB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001831/1.156, allocations: 1.101 MB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.624e-05/1.156, allocations: 0.8125 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003635/1.157, allocations: 62.16 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002822/1.157, allocations: 79.27 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000685/1.158, allocations: 223.9 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000248/1.158, allocations: 151.1 kB / 1.091 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/1.158, allocations: 22.3 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/1.158, allocations: 62.28 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/1.158, allocations: 67.94 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/1.158, allocations: 6.312 kB / 1.091 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/1.158, allocations: 79.58 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.469e-05/1.159, allocations: 34.5 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.852e-05/1.159, allocations: 62.73 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000356/1.159, allocations: 205.9 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.159, allocations: 0 / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.243e-06/1.159, allocations: 0.7188 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.313e-05/1.159, allocations: 0 / 1.092 GB, free: 3.031 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.0006635/1.16, allocations: 482.5 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/1.16, allocations: 9.531 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/1.16, allocations: 15.78 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/1.16, allocations: 259 kB / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/1.16, allocations: 6.188 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/1.16, allocations: 6.906 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/1.16, allocations: 93.62 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/1.16, allocations: 1.031 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/1.161, allocations: 4.516 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/1.161, allocations: 2.938 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/1.161, allocations: 35.05 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/1.161, allocations: 355.2 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/1.161, allocations: 88.86 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.075e-05/1.162, allocations: 30.8 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/1.162, allocations: 9.469 kB / 1.093 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/1.162, allocations: 88 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/1.162, allocations: 0 / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0003954/1.162, allocations: 137.6 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/1.162, allocations: 109.2 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003063/1.163, allocations: 258.1 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/1.163, allocations: 34.55 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/1.163, allocations: 117.2 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/1.163, allocations: 28.45 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.927e-05/1.163, allocations: 29.45 kB / 1.094 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.97e-05/1.163, allocations: 333.2 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.785e-05/1.163, allocations: 26.12 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/1.163, allocations: 67.69 kB / 1.094 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/1.163, allocations: 74.7 kB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/1.163, allocations: 0 / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002347/1.164, allocations: 109.3 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.164, allocations: 5.703 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/1.164, allocations: 0.75 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/1.164, allocations: 0.75 kB / 1.094 GB, free: 0.7617 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/1.164, allocations: 17.55 kB / 1.094 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/1.164, allocations: 4.75 kB / 1.094 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.292e-05/1.164, allocations: 13.16 kB / 1.094 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/1.164, allocations: 2.719 kB / 1.094 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.0001599/1.164, allocations: 152.5 kB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/1.164, allocations: 15.98 kB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.471e-05/1.164, allocations: 18.41 kB / 1.095 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/1.164, allocations: 2.969 kB / 1.095 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/1.164, allocations: 0 / 1.095 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/1.164, allocations: 5.344 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/1.164, allocations: 230.7 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/1.164, allocations: 0.7812 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/1.164, allocations: 6.25 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/1.164, allocations: 0.8438 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/1.165, allocations: 2.266 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/1.165, allocations: 0 / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.165, allocations: 1.391 kB / 1.095 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/1.165, allocations: 145.7 kB / 1.095 GB, free: 272 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.427e-05/1.165, allocations: 96.78 kB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/1.165, allocations: 6.062 kB / 1.095 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.973e-05/1.165, allocations: 3.734 kB / 1.095 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/1.165, allocations: 10.59 kB / 1.095 GB, free: 156 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/1.165, allocations: 7.734 kB / 1.095 GB, free: 152 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002753/1.165, allocations: 194.2 kB / 1.095 GB, free: 44 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.165, allocations: 0 / 1.095 GB, free: 44 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003409/1.166, allocations: 35.05 kB / 1.095 GB, free: 36 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.001369/1.167, allocations: 429.9 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003424/1.168, allocations: 73.06 kB / 1.096 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.716e-06/1.168, allocations: 0.5 kB / 1.096 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/1.168, allocations: 34.06 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/1.168, allocations: 35.84 kB / 1.096 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000868/1.169, allocations: 298.4 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000453/1.169, allocations: 0.7248 MB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001251/1.17, allocations: 28.12 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.099e-05/1.17, allocations: 24.12 kB / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/1.17, allocations: 0 / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.009698/1.179, allocations: 2.537 MB / 1.099 GB, free: 14.64 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches