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.001057/0.001057, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 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.001091/0.001091, allocations: 185 kB / 24.09 MB, free: 416 kB / 18.57 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 0.9466/0.9466, allocations: 177.1 MB / 204.5 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.8/1.8, allocations: 377.9 MB / 0.624 GB, free: 8.406 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0.9844 kB / 0.812 GB, free: 328 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.376e-05/1.544e-05, allocations: 3.859 kB / 0.812 GB, free: 324 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002526/0.002541, allocations: 1.832 MB / 0.8138 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.003984, allocations: 1.21 MB / 0.815 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.731e-05/0.004062, allocations: 1.156 kB / 0.815 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0002742/0.004336, allocations: 59.67 kB / 0.815 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.004612, allocations: 120 kB / 0.8151 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.005004, allocations: 205.4 kB / 0.8153 GB, free: 12.9 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.005186, allocations: 167.5 kB / 0.8155 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.005288, allocations: 22.59 kB / 0.8155 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.005393, allocations: 83.8 kB / 0.8156 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 8.613e-05/0.005479, allocations: 60.81 kB / 0.8157 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.005498, allocations: 8 kB / 0.8157 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.005623, allocations: 84.56 kB / 0.8157 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.005684, allocations: 43.84 kB / 0.8158 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 3.571e-05/0.00572, allocations: 29.61 kB / 0.8158 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.005925, allocations: 175.3 kB / 0.816 GB, free: 12.24 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.005927, allocations: 0 / 0.816 GB, free: 12.24 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.022e-06/0.005928, allocations: 0 / 0.816 GB, free: 12.24 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.005932, allocations: 0 / 0.816 GB, free: 12.24 MB / 0.7292 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.0004625/0.006395, allocations: 0.514 MB / 0.8165 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.006426, allocations: 8.031 kB / 0.8165 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.006474, allocations: 24.84 kB / 0.8165 GB, free: 11.66 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.006656, allocations: 181.6 kB / 0.8167 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.006676, allocations: 4.375 kB / 0.8167 GB, free: 11.45 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.006686, allocations: 9.188 kB / 0.8167 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.006814, allocations: 82.77 kB / 0.8168 GB, free: 11.35 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.006822, allocations: 9.531 kB / 0.8168 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-06/0.006829, allocations: 0 / 0.8168 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.006847, allocations: 0 / 0.8168 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.136e-05/0.006878, allocations: 15.98 kB / 0.8168 GB, free: 11.33 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003036/0.007182, allocations: 297 kB / 0.8171 GB, free: 11.01 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.007295, allocations: 59.69 kB / 0.8171 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.436e-05/0.00732, allocations: 25.27 kB / 0.8172 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.007335, allocations: 0 / 0.8172 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.366e-05/0.007429, allocations: 85 kB / 0.8173 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.00743, allocations: 0.5 kB / 0.8173 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0001707/0.007601, allocations: 94.41 kB / 0.8173 GB, free: 10.72 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.007622, allocations: 51.41 kB / 0.8174 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.007806, allocations: 278.4 kB / 0.8177 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.00782, allocations: 29.7 kB / 0.8177 GB, free: 10.33 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.00789, allocations: 175.9 kB / 0.8179 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.007911, allocations: 15.84 kB / 0.8179 GB, free: 10.14 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.735e-05/0.007949, allocations: 39.28 kB / 0.8179 GB, free: 10.09 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.008062, allocations: 0.5053 MB / 0.8184 GB, free: 9.578 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.008079, allocations: 7.984 kB / 0.8184 GB, free: 9.57 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.008192, allocations: 68.73 kB / 0.8185 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.863e-05/0.008241, allocations: 45.17 kB / 0.8185 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.008242, allocations: 0 / 0.8185 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 9.143e-05/0.008334, allocations: 93.45 kB / 0.8186 GB, free: 9.336 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.008346, allocations: 10.78 kB / 0.8186 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.008353, allocations: 0 / 0.8186 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.008366, allocations: 0 / 0.8186 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.801e-05/0.008424, allocations: 15.98 kB / 0.8186 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.008428, allocations: 3.938 kB / 0.8186 GB, free: 9.309 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.271e-05/0.008461, allocations: 7.953 kB / 0.8186 GB, free: 9.301 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.008466, allocations: 0 / 0.8186 GB, free: 9.301 MB / 0.7292 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 7.302e-05/0.008539, allocations: 162.1 kB / 0.8188 GB, free: 9.133 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.008558, allocations: 27.78 kB / 0.8188 GB, free: 9.105 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.008684, allocations: 95.56 kB / 0.8189 GB, free: 9 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.008697, allocations: 3.984 kB / 0.8189 GB, free: 8.996 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.008701, allocations: 8.5 kB / 0.8189 GB, free: 8.988 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.008704, allocations: 0.5625 kB / 0.8189 GB, free: 8.988 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.008821, allocations: 145.1 kB / 0.8191 GB, free: 8.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.008822, allocations: 1.375 kB / 0.8191 GB, free: 8.82 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.086e-05/0.008853, allocations: 7.984 kB / 0.8191 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.008856, allocations: 3.938 kB / 0.8191 GB, free: 8.809 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.008864, allocations: 6.594 kB / 0.8191 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.008864, allocations: 0 / 0.8191 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.008865, allocations: 0 / 0.8191 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001395/0.009005, allocations: 128.3 kB / 0.8192 GB, free: 8.656 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.075e-05/0.009025, allocations: 15.84 kB / 0.8192 GB, free: 8.641 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.009049, allocations: 15.92 kB / 0.8192 GB, free: 8.625 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.459e-05/0.009084, allocations: 3.984 kB / 0.8192 GB, free: 8.621 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.009122, allocations: 12.52 kB / 0.8193 GB, free: 8.609 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.009131, allocations: 0.5938 kB / 0.8193 GB, free: 8.609 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.79e-05/0.009229, allocations: 188.5 kB / 0.8194 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9.1e-08/0.009229, allocations: 1.125 kB / 0.8194 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002229/0.009452, allocations: 31.94 kB / 0.8195 GB, free: 8.395 MB / 0.7292 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.001054/0.01051, allocations: 412.1 kB / 0.8199 GB, free: 8.145 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001196/0.01063, allocations: 48.64 kB / 0.8199 GB, free: 8.094 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01063, allocations: 0 / 0.8199 GB, free: 8.094 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.507e-05/0.01067, allocations: 36.67 kB / 0.8199 GB, free: 8.055 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.0109, allocations: 37.52 kB / 0.82 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003666/0.01127, allocations: 271.3 kB / 0.8202 GB, free: 7.723 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001716/0.01144, allocations: 77.7 kB / 0.8203 GB, free: 7.629 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.246e-05/0.01149, allocations: 25.72 kB / 0.8203 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.01158, allocations: 94.19 kB / 0.8204 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of SimCode: time 1.002e-06/0.01158, allocations: 1.344 kB / 0.8204 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of Templates: time 0.00517/0.01675, allocations: 2.864 MB / 0.8232 GB, free: 4.707 MB / 0.7292 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.909773795865476]