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.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.00134/0.00134, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.001478/0.001478, allocations: 189.3 kB / 22.1 MB, free: 5.145 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.487/1.487, allocations: 225.6 MB / 250.8 MB, free: 13.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.154/3.154, allocations: 495.8 MB / 0.783 GB, free: 33.59 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-maint.12.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=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: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 69.67 kB / 1.137 GB, free: 33.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3608, 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.003221/0.364, allocations: 1.796 MB / 1.308 GB, free: 80 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3659, allocations: 1.138 MB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.366, allocations: 0 / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.3663, allocations: 55.73 kB / 1.31 GB, free: 14.88 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.3665, allocations: 75.67 kB / 1.31 GB, free: 14.8 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.3672, allocations: 234.6 kB / 1.31 GB, free: 14.58 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.3674, allocations: 151.5 kB / 1.31 GB, free: 14.43 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.884e-05/0.3675, allocations: 17.3 kB / 1.31 GB, free: 14.41 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.3676, allocations: 63.77 kB / 1.31 GB, free: 14.35 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.3678, allocations: 71.73 kB / 1.31 GB, free: 14.28 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.3678, allocations: 4 kB / 1.31 GB, free: 14.27 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.368, allocations: 87.86 kB / 1.31 GB, free: 14.19 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.3681, allocations: 43.84 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.494e-05/0.3681, allocations: 51.67 kB / 1.31 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.3684, allocations: 203.1 kB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3685, allocations: 0 / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3685, allocations: 0 / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.3685, allocations: 0 / 1.311 GB, free: 13.89 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.0006905/0.3692, allocations: 430.8 kB / 1.311 GB, free: 13.44 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3692, allocations: 12.03 kB / 1.311 GB, free: 13.43 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.3692, allocations: 12.84 kB / 1.311 GB, free: 13.41 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.3696, allocations: 199.1 kB / 1.311 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.3696, allocations: 4.375 kB / 1.311 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.3696, allocations: 8.125 kB / 1.311 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.3699, allocations: 100.1 kB / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3699, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.3699, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.3699, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.37, allocations: 43.91 kB / 1.311 GB, free: 13.02 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005419/0.3706, allocations: 319.8 kB / 1.312 GB, free: 12.67 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.3708, allocations: 82.66 kB / 1.312 GB, free: 12.58 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.19e-05/0.3709, allocations: 32.88 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3709, allocations: 4 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001927/0.3711, allocations: 87.31 kB / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.3711, allocations: 0 / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0004072/0.3715, allocations: 137.5 kB / 1.312 GB, free: 12.3 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.3716, allocations: 106.8 kB / 1.312 GB, free: 12.17 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.3719, allocations: 259.1 kB / 1.312 GB, free: 11.91 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.3719, allocations: 29.7 kB / 1.312 GB, free: 11.88 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.372, allocations: 120.1 kB / 1.313 GB, free: 11.75 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.372, allocations: 23.84 kB / 1.313 GB, free: 11.73 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/0.3721, allocations: 25.7 kB / 1.313 GB, free: 11.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3722, allocations: 338.8 kB / 1.313 GB, free: 11.36 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.3723, allocations: 23.98 kB / 1.313 GB, free: 11.34 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.3725, allocations: 64.28 kB / 1.313 GB, free: 11.26 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000168/0.3726, allocations: 77.62 kB / 1.313 GB, free: 11.18 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3726, allocations: 0 / 1.313 GB, free: 11.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000242/0.3729, allocations: 109.6 kB / 1.313 GB, free: 11.06 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3729, allocations: 4 kB / 1.313 GB, free: 11.06 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3729, allocations: 0 / 1.313 GB, free: 11.06 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3729, allocations: 4 kB / 1.313 GB, free: 11.05 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.373, allocations: 15.92 kB / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.373, allocations: 4 kB / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.095e-05/0.3731, allocations: 15.86 kB / 1.313 GB, free: 11.02 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.3731, allocations: 4.391 kB / 1.313 GB, free: 11.02 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.0001516/0.3733, allocations: 146.6 kB / 1.313 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.462e-05/0.3733, allocations: 15.91 kB / 1.313 GB, free: 10.85 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003061/0.3736, allocations: 127 kB / 1.313 GB, free: 10.71 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.3736, allocations: 3.938 kB / 1.313 GB, free: 10.71 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.3736, allocations: 192 / 1.313 GB, free: 10.71 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3736, allocations: 11.94 kB / 1.313 GB, free: 10.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.3739, allocations: 192.7 kB / 1.314 GB, free: 10.47 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.3739, allocations: 3.984 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.59e-05/0.3739, allocations: 7.984 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3739, allocations: 0 / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3739, allocations: 4 kB / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3739, allocations: 0 / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3739, allocations: 0 / 1.314 GB, free: 10.45 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.3742, allocations: 152.9 kB / 1.314 GB, free: 10.29 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.3742, allocations: 11.91 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.026e-05/0.3742, allocations: 4 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.3743, allocations: 11.92 kB / 1.314 GB, free: 10.26 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.3744, allocations: 7.984 kB / 1.314 GB, free: 10.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3744, allocations: 7.938 kB / 1.314 GB, free: 10.24 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001986/0.3746, allocations: 200.3 kB / 1.314 GB, free: 10.05 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3746, allocations: 0 / 1.314 GB, free: 10.05 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002614/0.3748, allocations: 35.92 kB / 1.314 GB, free: 10.01 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.001662/0.3765, allocations: 430.7 kB / 1.315 GB, free: 9.742 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.3768, allocations: 63.97 kB / 1.315 GB, free: 9.68 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3768, allocations: 0 / 1.315 GB, free: 9.68 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.3769, allocations: 35.92 kB / 1.315 GB, free: 9.645 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.3772, allocations: 40.64 kB / 1.315 GB, free: 9.609 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000565/0.3778, allocations: 298.7 kB / 1.315 GB, free: 9.293 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.3782, allocations: 0.7279 MB / 1.316 GB, free: 8.539 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.593e-05/0.3783, allocations: 21.38 kB / 1.316 GB, free: 8.516 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.3783, allocations: 23.44 kB / 1.316 GB, free: 8.496 MB / 1.014 GB Notification: Performance of SimCode: time 4.31e-07/0.3783, allocations: 3.938 kB / 1.316 GB, free: 8.492 MB / 1.014 GB Notification: Performance of Templates: time 0.00673/0.385, allocations: 2.6 MB / 1.318 GB, free: 5.914 MB / 1.014 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/jenkins/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: 8.989600632339716]