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.001407/0.001407, allocations: 104.2 kB / 19.74 MB, free: 2.07 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.001501/0.001501, allocations: 211.6 kB / 23.04 MB, free: 4.867 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.444/1.444, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.234/3.234, allocations: 0.49 GB / 0.7959 GB, free: 35.41 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.00189/0.00189, allocations: 66.39 kB / 1.155 GB, free: 25.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3196, allocations: 176.1 MB / 1.327 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003285/0.3229, allocations: 1.763 MB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002169/0.325, allocations: 1.2 MB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.745e-05/0.3251, allocations: 0 / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003176/0.3254, allocations: 63.67 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003488/0.3258, allocations: 119.5 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.3263, allocations: 206.9 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.3266, allocations: 155.5 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3267, allocations: 17.62 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.3268, allocations: 67.7 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.3269, allocations: 71.73 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.3269, allocations: 8 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.3271, allocations: 75.88 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.3272, allocations: 43.84 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.689e-05/0.3273, allocations: 47.72 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.3276, allocations: 207.2 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3276, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.3276, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3276, allocations: 0 / 1.331 GB, free: 12.89 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.0006457/0.3282, allocations: 430.8 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3283, allocations: 12.03 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.3283, allocations: 24.83 kB / 1.332 GB, free: 12.4 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3286, allocations: 190.9 kB / 1.332 GB, free: 12.19 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.3287, allocations: 4.375 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.3287, allocations: 12.12 kB / 1.332 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.3289, allocations: 117 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3289, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3289, allocations: 7.938 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.329, allocations: 4 kB / 1.332 GB, free: 12.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.3291, allocations: 35.97 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.3296, allocations: 296.3 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.3298, allocations: 90.66 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.146e-05/0.3299, allocations: 32.84 kB / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.3299, allocations: 0 / 1.332 GB, free: 11.54 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.3301, allocations: 87.39 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.442e-06/0.3301, allocations: 0 / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0003866/0.3305, allocations: 141.5 kB / 1.333 GB, free: 11.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.3306, allocations: 77.11 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.3309, allocations: 283 kB / 1.333 GB, free: 10.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.3309, allocations: 33.69 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.423e-05/0.331, allocations: 124.1 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.331, allocations: 19.8 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.3311, allocations: 33.7 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3312, allocations: 330.8 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.814e-05/0.3313, allocations: 31.92 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.3315, allocations: 114.8 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.3316, allocations: 69.69 kB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3316, allocations: 0 / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000237/0.3319, allocations: 121.5 kB / 1.334 GB, free: 9.992 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3319, allocations: 4 kB / 1.334 GB, free: 9.988 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3319, allocations: 4.062 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3319, allocations: 0 / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.332, allocations: 15.98 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.332, allocations: 0 / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.815e-05/0.3321, allocations: 8 kB / 1.334 GB, free: 9.961 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.3321, allocations: 4 kB / 1.334 GB, free: 9.957 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.0001503/0.3323, allocations: 142.4 kB / 1.334 GB, free: 9.809 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.428e-05/0.3323, allocations: 19.86 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.3326, allocations: 131.2 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3326, allocations: 15.92 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3326, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3326, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.3328, allocations: 169.1 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3328, allocations: 4 kB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.477e-05/0.3329, allocations: 4 kB / 1.334 GB, free: 9.434 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3329, allocations: 4 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.3329, allocations: 0 / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3329, allocations: 0 / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3329, allocations: 0 / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.3332, allocations: 156.9 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.3332, allocations: 31.84 kB / 1.334 GB, free: 9.227 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.3332, allocations: 3.984 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.479e-05/0.3333, allocations: 4 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.3333, allocations: 15.92 kB / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.3334, allocations: 0 / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002285/0.3336, allocations: 208.6 kB / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3336, allocations: 0 / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002655/0.3339, allocations: 39.92 kB / 1.335 GB, free: 8.961 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.001695/0.3355, allocations: 457.5 kB / 1.335 GB, free: 8.691 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002473/0.3358, allocations: 75.84 kB / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3358, allocations: 4 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3359, allocations: 35.92 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.3362, allocations: 37.52 kB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006139/0.3368, allocations: 344.4 kB / 1.336 GB, free: 8.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.3369, allocations: 114.6 kB / 1.336 GB, free: 8.043 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.335e-05/0.337, allocations: 19.44 kB / 1.336 GB, free: 8.023 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.337, allocations: 0 / 1.336 GB, free: 8.023 MB / 1.029 GB Notification: Performance of Templates: time 0.00521/0.3422, allocations: 2.725 MB / 1.338 GB, free: 5.305 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 -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: 11.626076097832993]