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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 191.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.06/3.06, allocations: 495.7 MB / 0.7831 GB, free: 33.57 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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=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: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 69.69 kB / 1.137 GB, free: 33.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3798, allocations: 173.6 MB / 1.307 GB, free: 1.883 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004055/0.3839, allocations: 1.795 MB / 1.309 GB, free: 80 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00211/0.386, allocations: 1.142 MB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.762e-05/0.3861, allocations: 0 / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000386/0.3864, allocations: 59.73 kB / 1.31 GB, free: 14.87 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0003144/0.3868, allocations: 79.66 kB / 1.31 GB, free: 14.79 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007689/0.3875, allocations: 242 kB / 1.31 GB, free: 14.56 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.3878, allocations: 143.6 kB / 1.31 GB, free: 14.42 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3879, allocations: 21.28 kB / 1.31 GB, free: 14.4 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.3881, allocations: 59.78 kB / 1.31 GB, free: 14.34 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.3882, allocations: 71.73 kB / 1.31 GB, free: 14.27 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.3882, allocations: 8 kB / 1.31 GB, free: 14.26 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.3884, allocations: 83.86 kB / 1.311 GB, free: 14.18 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3885, allocations: 43.83 kB / 1.311 GB, free: 14.14 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.3886, allocations: 55.62 kB / 1.311 GB, free: 14.08 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.389, allocations: 207.2 kB / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.389, allocations: 0 / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.783e-06/0.389, allocations: 0 / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.389, allocations: 0 / 1.311 GB, free: 13.88 MB / 1.014 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.0007769/0.3898, allocations: 422.9 kB / 1.311 GB, free: 13.43 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3898, allocations: 8.031 kB / 1.311 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.394e-05/0.3899, allocations: 16.84 kB / 1.311 GB, free: 13.41 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.3903, allocations: 195.1 kB / 1.311 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.3903, allocations: 8.312 kB / 1.311 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.3903, allocations: 8.125 kB / 1.311 GB, free: 13.17 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.3906, allocations: 96.17 kB / 1.312 GB, free: 13.06 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3906, allocations: 0 / 1.312 GB, free: 13.06 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3906, allocations: 0 / 1.312 GB, free: 13.06 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.3906, allocations: 4 kB / 1.312 GB, free: 13.06 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.3907, allocations: 35.91 kB / 1.312 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005952/0.3913, allocations: 335.7 kB / 1.312 GB, free: 12.65 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.3916, allocations: 86.69 kB / 1.312 GB, free: 12.56 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.293e-05/0.3916, allocations: 32.84 kB / 1.312 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.3917, allocations: 0 / 1.312 GB, free: 12.52 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.3919, allocations: 83.38 kB / 1.312 GB, free: 12.43 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.3919, allocations: 0 / 1.312 GB, free: 12.43 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0003869/0.3923, allocations: 137.5 kB / 1.312 GB, free: 12.29 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.3923, allocations: 106.8 kB / 1.312 GB, free: 12.16 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.3926, allocations: 259.1 kB / 1.313 GB, free: 11.9 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3927, allocations: 33.7 kB / 1.313 GB, free: 11.86 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.3928, allocations: 112.1 kB / 1.313 GB, free: 11.75 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.3928, allocations: 27.83 kB / 1.313 GB, free: 11.72 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.3929, allocations: 29.7 kB / 1.313 GB, free: 11.68 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.393, allocations: 330.8 kB / 1.313 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.186e-05/0.3931, allocations: 23.98 kB / 1.313 GB, free: 11.33 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.3932, allocations: 68.28 kB / 1.313 GB, free: 11.25 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.3934, allocations: 81.92 kB / 1.313 GB, free: 11.16 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3934, allocations: 0 / 1.313 GB, free: 11.16 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002368/0.3936, allocations: 105.6 kB / 1.313 GB, free: 11.05 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3936, allocations: 8 kB / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3936, allocations: 0 / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3936, allocations: 0 / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3937, allocations: 19.92 kB / 1.313 GB, free: 11.02 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3937, allocations: 0 / 1.313 GB, free: 11.02 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.351e-05/0.3938, allocations: 19.81 kB / 1.313 GB, free: 11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.3938, allocations: 4.188 kB / 1.313 GB, free: 11 MB / 1.014 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.000152/0.394, allocations: 142.7 kB / 1.314 GB, free: 10.85 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.394, allocations: 19.84 kB / 1.314 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002992/0.3943, allocations: 123 kB / 1.314 GB, free: 10.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.3943, allocations: 4 kB / 1.314 GB, free: 10.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3943, allocations: 0 / 1.314 GB, free: 10.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3943, allocations: 3.938 kB / 1.314 GB, free: 10.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.3945, allocations: 196.7 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3946, allocations: 4 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.273e-05/0.3946, allocations: 11.98 kB / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3946, allocations: 0 / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.3946, allocations: 0 / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3946, allocations: 0 / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3946, allocations: 4 kB / 1.314 GB, free: 10.44 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002498/0.3949, allocations: 136.9 kB / 1.314 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 3.911e-05/0.3949, allocations: 23.84 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.3949, allocations: 0 / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.75e-05/0.395, allocations: 15.92 kB / 1.314 GB, free: 10.25 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.104e-05/0.3951, allocations: 11.98 kB / 1.314 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.3951, allocations: 3.938 kB / 1.314 GB, free: 10.23 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000203/0.3953, allocations: 196.4 kB / 1.314 GB, free: 10.04 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3953, allocations: 0 / 1.314 GB, free: 10.04 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002594/0.3955, allocations: 39.88 kB / 1.314 GB, free: 10 MB / 1.014 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 (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.001569/0.3971, allocations: 427.1 kB / 1.315 GB, free: 9.738 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.3973, allocations: 67.91 kB / 1.315 GB, free: 9.672 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3973, allocations: 0 / 1.315 GB, free: 9.672 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 9.391e-05/0.3974, allocations: 35.97 kB / 1.315 GB, free: 9.637 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.3978, allocations: 35.95 kB / 1.315 GB, free: 9.602 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006261/0.3984, allocations: 298.6 kB / 1.315 GB, free: 9.285 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.3987, allocations: 0.728 MB / 1.316 GB, free: 8.531 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.935e-05/0.3988, allocations: 29.31 kB / 1.316 GB, free: 8.5 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.3989, allocations: 15.44 kB / 1.316 GB, free: 8.488 MB / 1.014 GB Notification: Performance of SimCode: time 2.6e-07/0.3989, allocations: 0 / 1.316 GB, free: 8.488 MB / 1.014 GB Notification: Performance of Templates: time 0.007148/0.406, allocations: 2.591 MB / 1.318 GB, free: 5.918 MB / 1.014 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.800352899357677]