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.001403/0.001403, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001722/0.001722, allocations: 165 kB / 23.01 MB, free: 1.551 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.994/0.994, allocations: 177.1 MB / 203.4 MB, free: 5.633 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 2.127/2.127, allocations: 429.5 MB / 0.6732 GB, free: 4.004 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 0.8782 GB, free: 6.316 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.779e-05/2.962e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003763/0.003792, allocations: 1.839 MB / 0.88 GB, free: 4.48 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.00214/0.005932, allocations: 1.229 MB / 0.8812 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.00604, allocations: 3.438 kB / 0.8812 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.006414, allocations: 59.62 kB / 0.8812 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0003954/0.00681, allocations: 119.4 kB / 0.8813 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005692/0.007379, allocations: 199.8 kB / 0.8815 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002423/0.007621, allocations: 167.5 kB / 0.8817 GB, free: 2.715 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.007741, allocations: 18.23 kB / 0.8817 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.007889, allocations: 80.7 kB / 0.8818 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/0.00802, allocations: 71.73 kB / 0.8819 GB, free: 2.547 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.008044, allocations: 8.75 kB / 0.8819 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.008229, allocations: 75.86 kB / 0.8819 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.531e-05/0.008324, allocations: 48.7 kB / 0.882 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.016e-05/0.008384, allocations: 27.94 kB / 0.882 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003182/0.008702, allocations: 176.4 kB / 0.8822 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.008707, allocations: 0 / 0.8822 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.192e-06/0.008708, allocations: 0 / 0.8822 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.008715, allocations: 0 / 0.8822 GB, free: 2.219 MB / 0.8386 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.0006841/0.009399, allocations: 0.5222 MB / 0.8827 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.009442, allocations: 8.031 kB / 0.8827 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.009513, allocations: 24.78 kB / 0.8827 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.009814, allocations: 189.2 kB / 0.8829 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.00984, allocations: 384 / 0.8829 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.009863, allocations: 8.375 kB / 0.8829 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.01009, allocations: 116.8 kB / 0.883 GB, free: 1.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.01011, allocations: 7.938 kB / 0.883 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.01012, allocations: 4 kB / 0.883 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.01014, allocations: 4 kB / 0.883 GB, free: 1.254 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.699e-05/0.01021, allocations: 23.91 kB / 0.8831 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006093/0.01082, allocations: 327.7 kB / 0.8834 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.01099, allocations: 79.06 kB / 0.8834 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.538e-05/0.01103, allocations: 15.69 kB / 0.8835 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.01105, allocations: 4 kB / 0.8835 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.0112, allocations: 81.02 kB / 0.8835 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 2.405e-06/0.0112, allocations: 0 / 0.8835 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002866/0.01149, allocations: 105.5 kB / 0.8836 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.01154, allocations: 77.11 kB / 0.8837 GB, free: 476 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.01174, allocations: 282.5 kB / 0.884 GB, free: 176 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.01176, allocations: 29.7 kB / 0.884 GB, free: 140 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.201e-05/0.01185, allocations: 166.9 kB / 0.8842 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.01188, allocations: 31.72 kB / 0.8842 GB, free: 15.94 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.906e-05/0.01192, allocations: 31.36 kB / 0.8842 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.01204, allocations: 0.504 MB / 0.8847 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.866e-05/0.01207, allocations: 12 kB / 0.8847 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.907e-05/0.01213, allocations: 102.1 kB / 0.8848 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.644e-05/0.0122, allocations: 55.23 kB / 0.8849 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.0122, allocations: 0 / 0.8849 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001211/0.01232, allocations: 93.52 kB / 0.885 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.01234, allocations: 6.031 kB / 0.885 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01234, allocations: 0 / 0.885 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.01236, allocations: 4 kB / 0.885 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.205e-05/0.01244, allocations: 12.06 kB / 0.885 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.01245, allocations: 0 / 0.885 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.063e-05/0.01249, allocations: 11.98 kB / 0.885 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.01249, allocations: 4 kB / 0.885 GB, free: 15.05 MB / 0.8542 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.678e-05/0.01259, allocations: 165.7 kB / 0.8852 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.01262, allocations: 23.86 kB / 0.8852 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.01278, allocations: 111.5 kB / 0.8853 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.01279, allocations: 4 kB / 0.8853 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01279, allocations: 0 / 0.8853 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-06/0.0128, allocations: 4 kB / 0.8853 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.01293, allocations: 180.5 kB / 0.8855 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01293, allocations: 3.938 kB / 0.8855 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.303e-05/0.01297, allocations: 4 kB / 0.8855 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01297, allocations: 0 / 0.8855 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.01298, allocations: 7.984 kB / 0.8855 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01298, allocations: 80 / 0.8855 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.01298, allocations: 7.922 kB / 0.8855 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.01312, allocations: 144.2 kB / 0.8856 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.925e-05/0.01314, allocations: 11.91 kB / 0.8856 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.01316, allocations: 8 kB / 0.8857 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.084e-05/0.01319, allocations: 11.97 kB / 0.8857 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.01323, allocations: 7.984 kB / 0.8857 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.01325, allocations: 8 kB / 0.8857 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001018/0.01335, allocations: 200.4 kB / 0.8859 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01335, allocations: 0 / 0.8859 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001822/0.01353, allocations: 35.92 kB / 0.8859 GB, free: 14.05 MB / 0.8542 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.0009375/0.01447, allocations: 403.3 kB / 0.8863 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001409/0.01461, allocations: 55.59 kB / 0.8863 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01461, allocations: 0 / 0.8863 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.827e-05/0.01466, allocations: 31.67 kB / 0.8864 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.01487, allocations: 45.56 kB / 0.8864 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/0.0153, allocations: 274.7 kB / 0.8867 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.421e-05/0.01534, allocations: 75.83 kB / 0.8868 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.051e-05/0.01539, allocations: 25.78 kB / 0.8868 GB, free: 13.24 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.762e-05/0.01544, allocations: 24.48 kB / 0.8868 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of SimCode: time 8.01e-07/0.01544, allocations: 0 / 0.8868 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of Templates: time 0.004919/0.02036, allocations: 2.704 MB / 0.8894 GB, free: 10.56 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.578208134043962]