Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001528/0.001528, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001473/0.001473, allocations: 211.8 kB / 22.99 MB, free: 4.957 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.654/1.654, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.225/3.225, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002086/0.002086, allocations: 83.2 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3772, allocations: 176.1 MB / 1.327 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003333/0.3805, allocations: 1.776 MB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002144/0.3826, allocations: 1.191 MB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.603e-05/0.3827, allocations: 8 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.383, allocations: 55.69 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003819/0.3834, allocations: 123.5 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005598/0.384, allocations: 194.3 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.3842, allocations: 159.5 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3843, allocations: 25.56 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3845, allocations: 67.77 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.3846, allocations: 67.73 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.3846, allocations: 11.94 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.3848, allocations: 87.86 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.3849, allocations: 35.91 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.917e-05/0.3849, allocations: 47.66 kB / 1.331 GB, free: 13.13 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.3853, allocations: 215.1 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3853, allocations: 4 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3853, allocations: 0 / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.3853, allocations: 4 kB / 1.331 GB, free: 12.91 MB / 1.029 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.0007072/0.386, allocations: 422.9 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.386, allocations: 8.031 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.3861, allocations: 24.83 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.3865, allocations: 198.8 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.3865, allocations: 4.375 kB / 1.332 GB, free: 12.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.3865, allocations: 8.125 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.3867, allocations: 117 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3867, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.3867, allocations: 0 / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.3868, allocations: 7.984 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.3869, allocations: 31.98 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.3874, allocations: 292.3 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.3876, allocations: 94.64 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.584e-05/0.3877, allocations: 28.84 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.3877, allocations: 4.031 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.3879, allocations: 83.38 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.388, allocations: 0 / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003918/0.3883, allocations: 141.5 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.3884, allocations: 81.11 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.3887, allocations: 283 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3887, allocations: 25.7 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.159e-05/0.3888, allocations: 124.1 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.3889, allocations: 27.77 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.064e-05/0.3889, allocations: 25.72 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3891, allocations: 334.8 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.06e-05/0.3891, allocations: 27.98 kB / 1.333 GB, free: 10.37 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.3893, allocations: 118.8 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.3894, allocations: 65.7 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3894, allocations: 0 / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002381/0.3897, allocations: 117.7 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3897, allocations: 8 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3897, allocations: 4.328 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3897, allocations: 4 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3898, allocations: 19.88 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.3898, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.295e-05/0.3899, allocations: 16.05 kB / 1.334 GB, free: 9.988 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.3899, allocations: 4 kB / 1.334 GB, free: 9.984 MB / 1.029 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.0001508/0.3901, allocations: 147.4 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.3901, allocations: 19.86 kB / 1.334 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003074/0.3904, allocations: 131 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3904, allocations: 4 kB / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3904, allocations: 0 / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3904, allocations: 0 / 1.334 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.3906, allocations: 169.1 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3906, allocations: 4 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.3907, allocations: 4 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3907, allocations: 3.984 kB / 1.334 GB, free: 9.465 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3907, allocations: 4 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3907, allocations: 0 / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3907, allocations: 0 / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.391, allocations: 156.9 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.391, allocations: 23.86 kB / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.391, allocations: 0 / 1.334 GB, free: 9.266 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.214e-05/0.3911, allocations: 7.984 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.3912, allocations: 11.97 kB / 1.334 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3912, allocations: 8 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000208/0.3914, allocations: 208.6 kB / 1.335 GB, free: 9.035 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3914, allocations: 0 / 1.335 GB, free: 9.035 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002914/0.3917, allocations: 31.94 kB / 1.335 GB, free: 9.004 MB / 1.029 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.0017/0.3934, allocations: 462.1 kB / 1.335 GB, free: 8.73 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002571/0.3936, allocations: 75.84 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3936, allocations: 0 / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.3937, allocations: 47.97 kB / 1.335 GB, free: 8.609 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.394, allocations: 39.28 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005983/0.3946, allocations: 302.7 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.3948, allocations: 114.6 kB / 1.336 GB, free: 8.121 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.228e-05/0.3948, allocations: 33.66 kB / 1.336 GB, free: 8.09 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.3949, allocations: 23.42 kB / 1.336 GB, free: 8.066 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3949, allocations: 0 / 1.336 GB, free: 8.066 MB / 1.029 GB Notification: Performance of Templates: time 0.00689/0.4018, allocations: 2.787 MB / 1.338 GB, free: 5.312 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.199227583012544]