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.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.001721/0.001721, allocations: 80.61 kB / 19.18 MB, free: 2.516 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.002128/0.002128, allocations: 160 kB / 22.46 MB, free: 5.375 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.535/1.535, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.888/2.888, allocations: 389 MB / 0.633 GB, free: 0.9922 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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 1.253e-06/1.253e-06, allocations: 0 / 1 GB, free: 6.203 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.358e-05/2.484e-05, allocations: 2.281 kB / 1 GB, free: 6.199 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003248/0.003273, allocations: 1.797 MB / 1.002 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002191/0.005464, allocations: 1.192 MB / 1.003 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.639e-05/0.00554, allocations: 0 / 1.003 GB, free: 3.195 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.005844, allocations: 59.62 kB / 1.003 GB, free: 3.137 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.006197, allocations: 119.4 kB / 1.003 GB, free: 3.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.006756, allocations: 201.8 kB / 1.003 GB, free: 2.824 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.006987, allocations: 163.5 kB / 1.004 GB, free: 2.664 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.00709, allocations: 13.62 kB / 1.004 GB, free: 2.645 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.007248, allocations: 91.73 kB / 1.004 GB, free: 2.555 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.007372, allocations: 67.8 kB / 1.004 GB, free: 2.488 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.007395, allocations: 4 kB / 1.004 GB, free: 2.484 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.00758, allocations: 79.86 kB / 1.004 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.844e-05/0.007659, allocations: 39.86 kB / 1.004 GB, free: 2.367 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 6.387e-05/0.007723, allocations: 35.84 kB / 1.004 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0003323/0.008055, allocations: 211.3 kB / 1.004 GB, free: 2.125 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.008058, allocations: 4 kB / 1.004 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.092e-06/0.008059, allocations: 0 / 1.004 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.008064, allocations: 0 / 1.004 GB, free: 2.121 MB / 0.9044 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.0007145/0.008778, allocations: 426.9 kB / 1.004 GB, free: 1.668 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.008813, allocations: 8.031 kB / 1.004 GB, free: 1.66 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.995e-05/0.008872, allocations: 16.84 kB / 1.005 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.009232, allocations: 197.4 kB / 1.005 GB, free: 1.426 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.009249, allocations: 8.375 kB / 1.005 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.009265, allocations: 4.375 kB / 1.005 GB, free: 1.414 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.009496, allocations: 117.6 kB / 1.005 GB, free: 1.281 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.009507, allocations: 7.875 kB / 1.005 GB, free: 1.273 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.009523, allocations: 11.92 kB / 1.005 GB, free: 1.262 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.009536, allocations: 4 kB / 1.005 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.009655, allocations: 27.98 kB / 1.005 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.01017, allocations: 292.4 kB / 1.005 GB, free: 0.9141 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.01041, allocations: 86.59 kB / 1.005 GB, free: 0.8203 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.333e-05/0.01049, allocations: 36.83 kB / 1.005 GB, free: 0.7812 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.01051, allocations: 4 kB / 1.005 GB, free: 0.7773 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001787/0.01069, allocations: 87.39 kB / 1.005 GB, free: 0.6797 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.01069, allocations: 0 / 1.005 GB, free: 0.6797 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0003932/0.01109, allocations: 145.5 kB / 1.005 GB, free: 0.5312 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.01114, allocations: 77.11 kB / 1.006 GB, free: 448 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.01145, allocations: 275.2 kB / 1.006 GB, free: 164 kB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.01148, allocations: 29.7 kB / 1.006 GB, free: 128 kB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.673e-05/0.01158, allocations: 120.1 kB / 1.006 GB, free: 4 kB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.541e-05/0.01162, allocations: 23.81 kB / 1.006 GB, free: 15.98 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.01167, allocations: 29.66 kB / 1.006 GB, free: 15.95 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.01184, allocations: 338.8 kB / 1.006 GB, free: 15.61 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.782e-05/0.01192, allocations: 23.98 kB / 1.006 GB, free: 15.58 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.01206, allocations: 118.8 kB / 1.006 GB, free: 15.44 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.01223, allocations: 73.64 kB / 1.007 GB, free: 15.36 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.01223, allocations: 0 / 1.007 GB, free: 15.36 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002692/0.0125, allocations: 117.5 kB / 1.007 GB, free: 15.24 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.01252, allocations: 4 kB / 1.007 GB, free: 15.24 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.01252, allocations: 4 kB / 1.007 GB, free: 15.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.01254, allocations: 0 / 1.007 GB, free: 15.23 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.756e-05/0.01263, allocations: 16.06 kB / 1.007 GB, free: 15.22 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.01264, allocations: 3.938 kB / 1.007 GB, free: 15.21 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.399e-05/0.01271, allocations: 15.94 kB / 1.007 GB, free: 15.2 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.01272, allocations: 400 / 1.007 GB, free: 15.2 MB / 0.92 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.0001461/0.01287, allocations: 142.7 kB / 1.007 GB, free: 15.05 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.217e-05/0.0129, allocations: 15.91 kB / 1.007 GB, free: 15.04 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000315/0.01322, allocations: 143.1 kB / 1.007 GB, free: 14.89 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.01323, allocations: 7.938 kB / 1.007 GB, free: 14.88 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.01323, allocations: 0 / 1.007 GB, free: 14.88 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.01323, allocations: 4 kB / 1.007 GB, free: 14.88 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.01343, allocations: 165.2 kB / 1.007 GB, free: 14.69 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.01344, allocations: 4 kB / 1.007 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.955e-05/0.01348, allocations: 7.984 kB / 1.007 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.01349, allocations: 0 / 1.007 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.0135, allocations: 4 kB / 1.007 GB, free: 14.67 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.0135, allocations: 0 / 1.007 GB, free: 14.67 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.0135, allocations: 0 / 1.007 GB, free: 14.67 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.01378, allocations: 152.9 kB / 1.007 GB, free: 14.5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.01381, allocations: 15.84 kB / 1.007 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.01385, allocations: 12 kB / 1.007 GB, free: 14.48 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.988e-05/0.01391, allocations: 3.984 kB / 1.007 GB, free: 14.47 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.201e-05/0.01396, allocations: 11.97 kB / 1.007 GB, free: 14.46 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.01398, allocations: 8 kB / 1.007 GB, free: 14.45 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002113/0.01419, allocations: 200.6 kB / 1.008 GB, free: 14.26 MB / 0.92 GB Notification: Performance of sort global known variables: time 9e-08/0.01419, allocations: 0 / 1.008 GB, free: 14.26 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002639/0.01446, allocations: 31.94 kB / 1.008 GB, free: 14.23 MB / 0.92 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.001715/0.01617, allocations: 462.5 kB / 1.008 GB, free: 13.95 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002476/0.01642, allocations: 75.89 kB / 1.008 GB, free: 13.88 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01642, allocations: 0 / 1.008 GB, free: 13.88 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.01653, allocations: 39.92 kB / 1.008 GB, free: 13.84 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.01683, allocations: 47.72 kB / 1.008 GB, free: 13.79 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005843/0.01742, allocations: 302 kB / 1.008 GB, free: 13.47 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.01753, allocations: 110.8 kB / 1.009 GB, free: 13.34 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.255e-05/0.0176, allocations: 33.83 kB / 1.009 GB, free: 13.31 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.527e-05/0.01767, allocations: 24.48 kB / 1.009 GB, free: 13.29 MB / 0.92 GB Notification: Performance of SimCode: time 4.21e-07/0.01767, allocations: 0 / 1.009 GB, free: 13.29 MB / 0.92 GB Notification: Performance of Templates: time 0.006746/0.02441, allocations: 2.662 MB / 1.011 GB, free: 10.66 MB / 0.92 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: 7.932449050247669]