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.0009477/0.0009477, allocations: 92.22 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.00115/0.00115, allocations: 173 kB / 23.03 MB, free: 1.543 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 1.007/1.007, 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.039/2.039, allocations: 429.5 MB / 0.6733 GB, free: 4.043 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.402e-06/1.402e-06, allocations: 0 / 0.8782 GB, free: 6.328 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.289e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.324 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002293/0.002316, allocations: 1.846 MB / 0.88 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.003748, allocations: 1.224 MB / 0.8812 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.395e-05/0.003832, allocations: 0.8438 kB / 0.8812 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002891/0.004121, allocations: 59.67 kB / 0.8812 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.004417, allocations: 124 kB / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.004844, allocations: 197.5 kB / 0.8815 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.005038, allocations: 167.5 kB / 0.8817 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.615e-05/0.005134, allocations: 19.12 kB / 0.8817 GB, free: 2.707 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.005243, allocations: 87.8 kB / 0.8818 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.754e-05/0.005341, allocations: 63.8 kB / 0.8819 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.005359, allocations: 11.06 kB / 0.8819 GB, free: 2.551 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.005508, allocations: 79.8 kB / 0.8819 GB, free: 2.473 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.491e-05/0.005573, allocations: 43.84 kB / 0.882 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.754e-05/0.005621, allocations: 35.86 kB / 0.882 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.005851, allocations: 171.4 kB / 0.8822 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.005853, allocations: 0 / 0.8822 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.062e-06/0.005854, allocations: 0 / 0.8822 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.005858, allocations: 0 / 0.8822 GB, free: 2.227 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.0005233/0.006381, allocations: 0.5135 MB / 0.8827 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.006418, allocations: 12.03 kB / 0.8827 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.006472, allocations: 26.08 kB / 0.8827 GB, free: 1.637 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.006672, allocations: 188.3 kB / 0.8829 GB, free: 1.426 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.006692, allocations: 8.312 kB / 0.8829 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.006704, allocations: 8.375 kB / 0.8829 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.006843, allocations: 66.92 kB / 0.883 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.006852, allocations: 7.938 kB / 0.883 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.006861, allocations: 0 / 0.883 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.006882, allocations: 0 / 0.883 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.455e-05/0.006926, allocations: 19.98 kB / 0.883 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003698/0.007296, allocations: 335.6 kB / 0.8833 GB, free: 0.9453 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.007424, allocations: 67.09 kB / 0.8834 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.007459, allocations: 23.67 kB / 0.8834 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.00747, allocations: 4 kB / 0.8834 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/0.007575, allocations: 81.06 kB / 0.8835 GB, free: 0.7422 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.007577, allocations: 0 / 0.8835 GB, free: 0.7422 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002081/0.007785, allocations: 101.6 kB / 0.8836 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.007811, allocations: 51.41 kB / 0.8836 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.007979, allocations: 282.5 kB / 0.8839 GB, free: 288 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.007994, allocations: 25.7 kB / 0.8839 GB, free: 256 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.008063, allocations: 170.8 kB / 0.8841 GB, free: 80 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.00809, allocations: 31.78 kB / 0.8841 GB, free: 48 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.008127, allocations: 35.3 kB / 0.8842 GB, free: 4 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.00825, allocations: 0.5001 MB / 0.8846 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.933e-05/0.00828, allocations: 15.98 kB / 0.8847 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.521e-05/0.008335, allocations: 68.75 kB / 0.8847 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.186e-05/0.008397, allocations: 47.31 kB / 0.8848 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.008399, allocations: 0 / 0.8848 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001143/0.008513, allocations: 93.52 kB / 0.8849 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.008526, allocations: 10.75 kB / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.008531, allocations: 4.062 kB / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.008543, allocations: 4 kB / 0.8849 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.096e-05/0.008614, allocations: 12 kB / 0.8849 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.008619, allocations: 3.938 kB / 0.8849 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.556e-05/0.008654, allocations: 7.984 kB / 0.8849 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.008662, allocations: 4 kB / 0.8849 GB, free: 15.2 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 8.01e-05/0.008742, allocations: 165.7 kB / 0.8851 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.008763, allocations: 23.84 kB / 0.8851 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.008912, allocations: 107.6 kB / 0.8852 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.008921, allocations: 8 kB / 0.8852 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.008925, allocations: 0 / 0.8852 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.008928, allocations: 3.984 kB / 0.8852 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.009048, allocations: 168.5 kB / 0.8854 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.00905, allocations: 0 / 0.8854 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.854e-05/0.009079, allocations: 11.98 kB / 0.8854 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.009081, allocations: 0 / 0.8854 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.00909, allocations: 4 kB / 0.8854 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.009091, allocations: 80 / 0.8854 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.009094, allocations: 7.984 kB / 0.8854 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.009218, allocations: 144.2 kB / 0.8855 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.009242, allocations: 23.8 kB / 0.8855 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.009263, allocations: 7.969 kB / 0.8856 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.511e-05/0.009288, allocations: 0 / 0.8856 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.009333, allocations: 11.98 kB / 0.8856 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.009343, allocations: 4 kB / 0.8856 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000103/0.009446, allocations: 204.5 kB / 0.8858 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.009446, allocations: 0 / 0.8858 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001686/0.009615, allocations: 35.94 kB / 0.8858 GB, free: 14.21 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.0008877/0.0105, allocations: 401 kB / 0.8862 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.01064, allocations: 59.59 kB / 0.8862 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01064, allocations: 0 / 0.8862 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.401e-05/0.01069, allocations: 35.67 kB / 0.8863 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.01089, allocations: 44.8 kB / 0.8863 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003895/0.01128, allocations: 270.7 kB / 0.8866 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.128e-05/0.01132, allocations: 75.83 kB / 0.8866 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.631e-05/0.01136, allocations: 21.78 kB / 0.8867 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.037e-05/0.0114, allocations: 24.48 kB / 0.8867 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of SimCode: time 8.42e-07/0.0114, allocations: 0 / 0.8867 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of Templates: time 0.004831/0.01624, allocations: 2.81 MB / 0.8894 GB, free: 10.61 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.262902093119919]