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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 211.3 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.372/3.372, allocations: 0.5107 GB / 0.8158 GB, free: 17.86 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 74.44 kB / 1.186 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.36, allocations: 181.9 MB / 1.364 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003982/0.364, allocations: 1.788 MB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002386/0.3663, allocations: 1.186 MB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3665, allocations: 0 / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.3668, allocations: 59.69 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004404/0.3672, allocations: 127.5 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006608/0.3679, allocations: 189.6 kB / 1.367 GB, free: 10.24 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002912/0.3682, allocations: 159.6 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.3683, allocations: 13.62 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.3684, allocations: 75.64 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.3686, allocations: 67.73 kB / 1.367 GB, free: 9.922 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.3686, allocations: 4 kB / 1.367 GB, free: 9.918 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.3688, allocations: 83.92 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3689, allocations: 43.78 kB / 1.368 GB, free: 9.793 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.685e-05/0.369, allocations: 51.67 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003809/0.3694, allocations: 207.2 kB / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3694, allocations: 0 / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3694, allocations: 0 / 1.368 GB, free: 9.539 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.3694, allocations: 0 / 1.368 GB, free: 9.539 MB / 1.061 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.0007933/0.3702, allocations: 430.8 kB / 1.368 GB, free: 9.082 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3702, allocations: 12.03 kB / 1.368 GB, free: 9.07 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.202e-05/0.3703, allocations: 16.84 kB / 1.368 GB, free: 9.055 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.3707, allocations: 198.1 kB / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3707, allocations: 384 / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.3708, allocations: 16.12 kB / 1.368 GB, free: 8.82 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.371, allocations: 113 kB / 1.369 GB, free: 8.691 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.371, allocations: 7.938 kB / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.371, allocations: 0 / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.371, allocations: 7.984 kB / 1.369 GB, free: 8.676 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.3712, allocations: 39.92 kB / 1.369 GB, free: 8.637 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.3717, allocations: 288.4 kB / 1.369 GB, free: 8.324 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.372, allocations: 82.66 kB / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.446e-05/0.372, allocations: 36.84 kB / 1.369 GB, free: 8.195 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.372, allocations: 0 / 1.369 GB, free: 8.195 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.3722, allocations: 87.31 kB / 1.369 GB, free: 8.098 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.3722, allocations: 0 / 1.369 GB, free: 8.098 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.0004003/0.3726, allocations: 145.6 kB / 1.369 GB, free: 7.949 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.3727, allocations: 81.11 kB / 1.369 GB, free: 7.852 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.373, allocations: 279.8 kB / 1.37 GB, free: 7.566 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.3731, allocations: 25.7 kB / 1.37 GB, free: 7.535 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.3732, allocations: 120.1 kB / 1.37 GB, free: 7.414 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.3732, allocations: 23.83 kB / 1.37 GB, free: 7.391 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.3733, allocations: 29.7 kB / 1.37 GB, free: 7.355 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3734, allocations: 338.8 kB / 1.37 GB, free: 7.016 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.3735, allocations: 23.98 kB / 1.37 GB, free: 6.992 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.3737, allocations: 122.8 kB / 1.37 GB, free: 6.848 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.3738, allocations: 69.7 kB / 1.37 GB, free: 6.773 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3738, allocations: 0 / 1.37 GB, free: 6.773 MB / 1.061 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002598/0.3741, allocations: 117.5 kB / 1.37 GB, free: 6.652 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3741, allocations: 4 kB / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3741, allocations: 4.062 kB / 1.37 GB, free: 6.645 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3741, allocations: 4 kB / 1.37 GB, free: 6.641 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.598e-05/0.3742, allocations: 8 kB / 1.37 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3742, allocations: 4 kB / 1.37 GB, free: 6.629 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.156e-05/0.3743, allocations: 7.938 kB / 1.37 GB, free: 6.621 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.3743, allocations: 4 kB / 1.37 GB, free: 6.617 MB / 1.061 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.0001585/0.3745, allocations: 153.7 kB / 1.371 GB, free: 6.457 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.3745, allocations: 15.91 kB / 1.371 GB, free: 6.441 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.3748, allocations: 131 kB / 1.371 GB, free: 6.305 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.3748, allocations: 4.188 kB / 1.371 GB, free: 6.301 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3748, allocations: 4 kB / 1.371 GB, free: 6.297 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3748, allocations: 3.938 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.375, allocations: 173.1 kB / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.375, allocations: 0 / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.3751, allocations: 15.92 kB / 1.371 GB, free: 6.078 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3751, allocations: 0 / 1.371 GB, free: 6.078 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3751, allocations: 4 kB / 1.371 GB, free: 6.074 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3751, allocations: 480 / 1.371 GB, free: 6.074 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3751, allocations: 4 kB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.3754, allocations: 152.9 kB / 1.371 GB, free: 5.902 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.261e-05/0.3754, allocations: 15.91 kB / 1.371 GB, free: 5.887 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.3755, allocations: 8 kB / 1.371 GB, free: 5.879 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.691e-05/0.3755, allocations: 3.984 kB / 1.371 GB, free: 5.875 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.3756, allocations: 7.984 kB / 1.371 GB, free: 5.867 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3756, allocations: 4 kB / 1.371 GB, free: 5.863 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002205/0.3758, allocations: 208.6 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3758, allocations: 0 / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002666/0.3761, allocations: 35.92 kB / 1.371 GB, free: 5.625 MB / 1.061 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.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 (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.001746/0.3778, allocations: 461.1 kB / 1.372 GB, free: 5.352 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002574/0.3781, allocations: 91.8 kB / 1.372 GB, free: 5.262 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3781, allocations: 0 / 1.372 GB, free: 5.262 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.938e-05/0.3782, allocations: 31.98 kB / 1.372 GB, free: 5.23 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.3785, allocations: 34.52 kB / 1.372 GB, free: 5.199 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006147/0.3791, allocations: 310.7 kB / 1.372 GB, free: 4.871 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.3792, allocations: 114.6 kB / 1.372 GB, free: 4.738 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.156e-05/0.3793, allocations: 21.73 kB / 1.372 GB, free: 4.719 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.601e-05/0.3793, allocations: 23.42 kB / 1.372 GB, free: 4.695 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.3793, allocations: 0 / 1.372 GB, free: 4.695 MB / 1.061 GB Notification: Performance of Templates: time 0.007142/0.3865, allocations: 2.758 MB / 1.375 GB, free: 1.977 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.97247651219368]