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.0008613/0.0008613, allocations: 80.48 kB / 19.93 MB, free: 4.629 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.0008482/0.0008482, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 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.8955/0.8955, allocations: 177.1 MB / 203.5 MB, free: 5.676 MB / 186.7 MB " [Timeout remaining time 179] 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 1.8/1.8, allocations: 389 MB / 0.6338 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] 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.994e-06/1.994e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.509e-05, allocations: 6.219 kB / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002226/0.002251, allocations: 1.78 MB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.003613, allocations: 1.188 MB / 1.004 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.384e-05/0.003697, allocations: 0 / 1.004 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.003976, allocations: 67.55 kB / 1.004 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0002831/0.004259, allocations: 119.5 kB / 1.004 GB, free: 9.824 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.004681, allocations: 203.2 kB / 1.004 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.004863, allocations: 155.6 kB / 1.004 GB, free: 9.473 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.004968, allocations: 21.62 kB / 1.004 GB, free: 9.445 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.00508, allocations: 91.67 kB / 1.004 GB, free: 9.355 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 9.515e-05/0.005176, allocations: 63.86 kB / 1.004 GB, free: 9.293 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.005193, allocations: 8 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.005326, allocations: 83.86 kB / 1.005 GB, free: 9.203 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.437e-05/0.00539, allocations: 39.84 kB / 1.005 GB, free: 9.164 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.62e-05/0.005437, allocations: 31.86 kB / 1.005 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002526/0.005689, allocations: 219.3 kB / 1.005 GB, free: 8.918 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.005692, allocations: 0 / 1.005 GB, free: 8.918 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.112e-06/0.005693, allocations: 0 / 1.005 GB, free: 8.918 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.005698, allocations: 0 / 1.005 GB, free: 8.918 MB / 0.9636 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.0005077/0.006206, allocations: 422.8 kB / 1.005 GB, free: 8.469 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.006241, allocations: 12.75 kB / 1.005 GB, free: 8.457 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.006288, allocations: 24.83 kB / 1.005 GB, free: 8.434 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.00654, allocations: 193.4 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.006553, allocations: 4.359 kB / 1.005 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.006573, allocations: 8.312 kB / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.006745, allocations: 117.6 kB / 1.006 GB, free: 8.074 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.006753, allocations: 3.938 kB / 1.006 GB, free: 8.07 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.006764, allocations: 4 kB / 1.006 GB, free: 8.066 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.006773, allocations: 4 kB / 1.006 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.903e-05/0.006842, allocations: 35.97 kB / 1.006 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003669/0.007209, allocations: 288.4 kB / 1.006 GB, free: 7.715 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.007357, allocations: 98.59 kB / 1.006 GB, free: 7.609 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.363e-05/0.007401, allocations: 28.84 kB / 1.006 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.007416, allocations: 4.031 kB / 1.006 GB, free: 7.574 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.007541, allocations: 87.36 kB / 1.006 GB, free: 7.477 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.007542, allocations: 3.938 kB / 1.006 GB, free: 7.473 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0002449/0.007787, allocations: 141.5 kB / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.007824, allocations: 77.11 kB / 1.006 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.008013, allocations: 275.2 kB / 1.007 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.008028, allocations: 29.7 kB / 1.007 GB, free: 6.918 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.008225, allocations: 128 kB / 1.007 GB, free: 6.789 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.008247, allocations: 19.84 kB / 1.007 GB, free: 6.77 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.008282, allocations: 29.7 kB / 1.007 GB, free: 6.734 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.677e-05/0.008359, allocations: 326.8 kB / 1.007 GB, free: 6.406 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.008406, allocations: 27.98 kB / 1.007 GB, free: 6.379 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.1e-05/0.008477, allocations: 114.8 kB / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.766e-05/0.008564, allocations: 77.61 kB / 1.007 GB, free: 6.16 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.008566, allocations: 3.938 kB / 1.007 GB, free: 6.156 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001293/0.008696, allocations: 121.5 kB / 1.007 GB, free: 6.031 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.008709, allocations: 8 kB / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.008715, allocations: 0 / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.008727, allocations: 0 / 1.007 GB, free: 6.023 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.817e-05/0.008795, allocations: 19.92 kB / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.0088, allocations: 0 / 1.007 GB, free: 6.004 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.729e-05/0.008837, allocations: 8 kB / 1.007 GB, free: 5.996 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.008844, allocations: 4 kB / 1.007 GB, free: 5.992 MB / 0.9636 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 9.239e-05/0.008936, allocations: 141.8 kB / 1.008 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.029e-05/0.008957, allocations: 19.91 kB / 1.008 GB, free: 5.824 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001811/0.009138, allocations: 131.1 kB / 1.008 GB, free: 5.688 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.009147, allocations: 7.984 kB / 1.008 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.009152, allocations: 0 / 1.008 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.009155, allocations: 0 / 1.008 GB, free: 5.68 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.009278, allocations: 173.1 kB / 1.008 GB, free: 5.48 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.009281, allocations: 3.984 kB / 1.008 GB, free: 5.477 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.734e-05/0.009308, allocations: 4 kB / 1.008 GB, free: 5.473 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.009312, allocations: 7.984 kB / 1.008 GB, free: 5.465 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.009319, allocations: 192 / 1.008 GB, free: 5.465 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.009321, allocations: 4 kB / 1.008 GB, free: 5.461 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.009323, allocations: 7.938 kB / 1.008 GB, free: 5.453 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.009466, allocations: 152.9 kB / 1.008 GB, free: 5.285 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/0.009487, allocations: 19.89 kB / 1.008 GB, free: 5.266 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.009505, allocations: 4 kB / 1.008 GB, free: 5.262 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.603e-05/0.009531, allocations: 4 kB / 1.008 GB, free: 5.258 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.009577, allocations: 11.98 kB / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.009586, allocations: 0 / 1.008 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0001195/0.009705, allocations: 203.2 kB / 1.008 GB, free: 5.047 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.009705, allocations: 0 / 1.008 GB, free: 5.047 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001864/0.009892, allocations: 35.92 kB / 1.008 GB, free: 5.012 MB / 0.9636 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.0007521/0.01064, allocations: 458.3 kB / 1.009 GB, free: 4.742 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.01081, allocations: 71.89 kB / 1.009 GB, free: 4.672 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.01081, allocations: 4 kB / 1.009 GB, free: 4.668 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 5.31e-05/0.01086, allocations: 39.92 kB / 1.009 GB, free: 4.629 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.01107, allocations: 45.05 kB / 1.009 GB, free: 4.59 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004231/0.01149, allocations: 332.2 kB / 1.009 GB, free: 4.234 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.241e-05/0.01156, allocations: 114.8 kB / 1.009 GB, free: 4.105 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.888e-05/0.0116, allocations: 24.5 kB / 1.009 GB, free: 4.082 MB / 0.9636 GB Notification: Performance of SimCode: time 6.01e-07/0.0116, allocations: 0 / 1.009 GB, free: 4.082 MB / 0.9636 GB Notification: Performance of Templates: time 0.003149/0.01475, allocations: 2.736 MB / 1.012 GB, free: 1.355 MB / 0.9636 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: 6.962845327332616]