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.002401/0.002401, allocations: 79.7 kB / 20.23 MB, free: 4.184 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.002747/0.002747, allocations: 157.3 kB / 23.55 MB, free: 0.8711 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.559/1.559, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 3.078/3.078, allocations: 377.8 MB / 0.6232 GB, free: 8.5 MB / 0.5886 GB " [Timeout remaining time 176] 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.2.|intRep.y.1.",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.2.|intRep.y.1.",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.8108 GB, free: 0.9766 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.795e-05/3.939e-05, allocations: 2.312 kB / 0.8108 GB, free: 0.9727 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004455/0.004494, allocations: 1.803 MB / 0.8126 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.00329/0.007784, allocations: 1.219 MB / 0.8138 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.375e-05/0.007868, allocations: 0 / 0.8138 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.008202, allocations: 69.8 kB / 0.8138 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0004871/0.008689, allocations: 115.5 kB / 0.8139 GB, free: 13.78 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007753/0.009464, allocations: 204.4 kB / 0.8141 GB, free: 13.58 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.009782, allocations: 152.3 kB / 0.8143 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.009923, allocations: 25.61 kB / 0.8143 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.0101, allocations: 89.08 kB / 0.8144 GB, free: 13.32 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.01028, allocations: 67.8 kB / 0.8144 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.01032, allocations: 8 kB / 0.8144 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.01057, allocations: 77.8 kB / 0.8145 GB, free: 13.17 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.01068, allocations: 35.86 kB / 0.8146 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 9.853e-05/0.01078, allocations: 39.84 kB / 0.8146 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0007976/0.01158, allocations: 211.3 kB / 0.8148 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.01159, allocations: 0 / 0.8148 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.395e-06/0.01159, allocations: 4 kB / 0.8148 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.0116, allocations: 1.812 kB / 0.8148 GB, free: 12.89 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.0009748/0.01257, allocations: 0.5321 MB / 0.8153 GB, free: 12.31 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.01262, allocations: 11.97 kB / 0.8153 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.878e-05/0.01271, allocations: 16.84 kB / 0.8153 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.01314, allocations: 201.7 kB / 0.8155 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.01316, allocations: 4.375 kB / 0.8155 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.01318, allocations: 0.9062 kB / 0.8155 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.01347, allocations: 123.9 kB / 0.8157 GB, free: 11.92 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.01348, allocations: 3.938 kB / 0.8157 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.0135, allocations: 4.531 kB / 0.8157 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.01351, allocations: 5.312 kB / 0.8157 GB, free: 11.91 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.01365, allocations: 23.98 kB / 0.8157 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007586/0.01441, allocations: 359.7 kB / 0.816 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.01472, allocations: 83.66 kB / 0.8161 GB, free: 11.4 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.21e-05/0.01481, allocations: 21.06 kB / 0.8161 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.01484, allocations: 4 kB / 0.8161 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.01507, allocations: 85.02 kB / 0.8162 GB, free: 11.28 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.01507, allocations: 1.156 kB / 0.8162 GB, free: 11.28 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8): time 0.0005014/0.01557, allocations: 133.4 kB / 0.8164 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.01566, allocations: 77.11 kB / 0.8164 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004765/0.01614, allocations: 323 kB / 0.8167 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.01617, allocations: 25.7 kB / 0.8168 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.01635, allocations: 178.9 kB / 0.8169 GB, free: 10.5 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.0164, allocations: 23.8 kB / 0.817 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.01649, allocations: 36.27 kB / 0.817 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0003825/0.01687, allocations: 0.5157 MB / 0.8175 GB, free: 9.91 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.791e-05/0.01696, allocations: 16.77 kB / 0.8175 GB, free: 9.895 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.01714, allocations: 114.1 kB / 0.8176 GB, free: 9.754 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.01731, allocations: 68.58 kB / 0.8177 GB, free: 9.68 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01731, allocations: 0 / 0.8177 GB, free: 9.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002439/0.01755, allocations: 110.3 kB / 0.8178 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.01757, allocations: 4 kB / 0.8178 GB, free: 9.562 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.01758, allocations: 5.203 kB / 0.8178 GB, free: 9.559 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.01759, allocations: 7.938 kB / 0.8178 GB, free: 9.551 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.418e-05/0.01769, allocations: 8 kB / 0.8178 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.0177, allocations: 4 kB / 0.8178 GB, free: 9.539 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.103e-05/0.01776, allocations: 5.266 kB / 0.8178 GB, free: 9.535 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.01778, allocations: 11.98 kB / 0.8178 GB, free: 9.523 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 0.0001624/0.01794, allocations: 180.5 kB / 0.818 GB, free: 9.34 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.01798, allocations: 15.91 kB / 0.818 GB, free: 9.324 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.01825, allocations: 107.1 kB / 0.8181 GB, free: 9.207 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.01826, allocations: 4 kB / 0.8181 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.165e-06/0.01827, allocations: 2.625 kB / 0.8181 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01827, allocations: 0 / 0.8181 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002683/0.01854, allocations: 200.5 kB / 0.8183 GB, free: 8.973 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.01854, allocations: 0 / 0.8183 GB, free: 8.973 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.145e-05/0.01859, allocations: 11.94 kB / 0.8183 GB, free: 8.961 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.0186, allocations: 3.984 kB / 0.8183 GB, free: 8.957 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.0186, allocations: 0 / 0.8183 GB, free: 8.957 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01861, allocations: 0.5 kB / 0.8183 GB, free: 8.957 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.01861, allocations: 0 / 0.8183 GB, free: 8.957 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/0.01889, allocations: 156.8 kB / 0.8185 GB, free: 8.781 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.01893, allocations: 21.12 kB / 0.8185 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.01896, allocations: 3.984 kB / 0.8185 GB, free: 8.758 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.206e-05/0.01901, allocations: 4 kB / 0.8185 GB, free: 8.754 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.01907, allocations: 11.98 kB / 0.8185 GB, free: 8.742 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.01909, allocations: 4.906 kB / 0.8185 GB, free: 8.738 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002169/0.0193, allocations: 220.5 kB / 0.8187 GB, free: 8.523 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.0193, allocations: 0.6562 kB / 0.8187 GB, free: 8.523 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002581/0.01956, allocations: 27.94 kB / 0.8188 GB, free: 8.496 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.002918/0.02248, allocations: 460 kB / 0.8192 GB, free: 8.238 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.02273, allocations: 70.12 kB / 0.8193 GB, free: 8.168 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.02274, allocations: 0 / 0.8193 GB, free: 8.168 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.02284, allocations: 43.66 kB / 0.8193 GB, free: 8.121 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.02317, allocations: 46.31 kB / 0.8194 GB, free: 8.082 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000658/0.02383, allocations: 278.8 kB / 0.8196 GB, free: 7.777 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.02397, allocations: 121 kB / 0.8197 GB, free: 7.645 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.62e-05/0.02404, allocations: 17.98 kB / 0.8198 GB, free: 7.625 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.284e-05/0.0241, allocations: 25.86 kB / 0.8198 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of SimCode: time 6.01e-07/0.02411, allocations: 0 / 0.8198 GB, free: 7.602 MB / 0.7292 GB Notification: Performance of Templates: time 0.007544/0.03165, allocations: 2.688 MB / 0.8224 GB, free: 4.961 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.027593772974797]