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.0009593/0.0009593, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001305/0.001305, allocations: 173 kB / 23.36 MB, free: 1.133 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.064/1.064, allocations: 177.1 MB / 203.8 MB, free: 5.461 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.418/2.418, allocations: 438.8 MB / 0.6826 GB, free: 13.55 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.603e-06/1.603e-06, allocations: 0 / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.784e-05, allocations: 10.25 kB / 0.8386 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002973/0.003001, allocations: 1.824 MB / 0.8404 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.004594, allocations: 1.235 MB / 0.8416 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.004705, allocations: 7.938 kB / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.005054, allocations: 55.67 kB / 0.8416 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.005421, allocations: 123.4 kB / 0.8418 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.005881, allocations: 199.2 kB / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.006074, allocations: 163.5 kB / 0.8421 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 9.607e-05/0.00617, allocations: 14.3 kB / 0.8421 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.006292, allocations: 87.78 kB / 0.8422 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.993e-05/0.006382, allocations: 59.81 kB / 0.8423 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.006399, allocations: 4 kB / 0.8423 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.006541, allocations: 83.8 kB / 0.8423 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 6.259e-05/0.006604, allocations: 43.84 kB / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.006645, allocations: 31.86 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.006875, allocations: 175.4 kB / 0.8426 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.006878, allocations: 0 / 0.8426 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.192e-06/0.00688, allocations: 0 / 0.8426 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.006884, allocations: 4 kB / 0.8426 GB, free: 10.04 MB / 0.8073 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.0005154/0.0074, allocations: 385.5 kB / 0.8429 GB, free: 9.629 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.007434, allocations: 8.625 kB / 0.843 GB, free: 9.621 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.007474, allocations: 16.92 kB / 0.843 GB, free: 9.605 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.00766, allocations: 169.4 kB / 0.8431 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.007678, allocations: 12.3 kB / 0.8431 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.007692, allocations: 12.31 kB / 0.8432 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.007822, allocations: 73.75 kB / 0.8432 GB, free: 9.309 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.00783, allocations: 3.938 kB / 0.8432 GB, free: 9.305 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.007838, allocations: 0 / 0.8432 GB, free: 9.305 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.007859, allocations: 4 kB / 0.8432 GB, free: 9.301 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.284e-05/0.007892, allocations: 15.98 kB / 0.8433 GB, free: 9.285 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000268/0.00816, allocations: 197.8 kB / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.008266, allocations: 100.1 kB / 0.8435 GB, free: 8.965 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.292e-05/0.008289, allocations: 16.86 kB / 0.8436 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.008303, allocations: 7.922 kB / 0.8436 GB, free: 8.938 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.122e-05/0.008394, allocations: 78.2 kB / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.492e-06/0.008396, allocations: 0 / 0.8436 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.0001258/0.008521, allocations: 65.67 kB / 0.8437 GB, free: 8.777 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.00855, allocations: 55.41 kB / 0.8437 GB, free: 8.711 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.008685, allocations: 216.9 kB / 0.844 GB, free: 8.484 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.008701, allocations: 29.7 kB / 0.844 GB, free: 8.449 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/0.008743, allocations: 108.5 kB / 0.8441 GB, free: 8.34 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.008765, allocations: 19.84 kB / 0.8441 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/0.008797, allocations: 29.69 kB / 0.8441 GB, free: 8.285 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.001e-05/0.008877, allocations: 330.8 kB / 0.8444 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.852e-05/0.008896, allocations: 6.828 kB / 0.8445 GB, free: 7.945 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.995e-05/0.008936, allocations: 64.19 kB / 0.8445 GB, free: 7.867 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.701e-05/0.008993, allocations: 43.34 kB / 0.8446 GB, free: 7.816 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.008995, allocations: 0 / 0.8446 GB, free: 7.816 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 8.257e-05/0.009077, allocations: 76.36 kB / 0.8446 GB, free: 7.734 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.009088, allocations: 4 kB / 0.8446 GB, free: 7.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.009093, allocations: 4.062 kB / 0.8446 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.009105, allocations: 4 kB / 0.8446 GB, free: 7.723 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.448e-05/0.00917, allocations: 12 kB / 0.8447 GB, free: 7.711 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.009173, allocations: 3.984 kB / 0.8447 GB, free: 7.707 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.455e-05/0.009207, allocations: 7.953 kB / 0.8447 GB, free: 7.699 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.009213, allocations: 3.938 kB / 0.8447 GB, free: 7.695 MB / 0.8073 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 7.286e-05/0.009285, allocations: 128.6 kB / 0.8448 GB, free: 7.559 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.0093, allocations: 11.92 kB / 0.8448 GB, free: 7.547 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.009405, allocations: 79.25 kB / 0.8449 GB, free: 7.469 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.009414, allocations: 4 kB / 0.8449 GB, free: 7.465 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.009415, allocations: 0 / 0.8449 GB, free: 7.465 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.009418, allocations: 0 / 0.8449 GB, free: 7.465 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.461e-05/0.009513, allocations: 105.8 kB / 0.845 GB, free: 7.344 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.009514, allocations: 0 / 0.845 GB, free: 7.344 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.009544, allocations: 15.92 kB / 0.845 GB, free: 7.328 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.009545, allocations: 0 / 0.845 GB, free: 7.328 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.009552, allocations: 3.938 kB / 0.845 GB, free: 7.324 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.009554, allocations: 4 kB / 0.845 GB, free: 7.32 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.009555, allocations: 0 / 0.845 GB, free: 7.32 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.725e-05/0.009642, allocations: 102.7 kB / 0.8451 GB, free: 7.199 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.558e-05/0.009658, allocations: 15.91 kB / 0.8451 GB, free: 7.184 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.009674, allocations: 3.938 kB / 0.8451 GB, free: 7.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.515e-05/0.009699, allocations: 11.94 kB / 0.8451 GB, free: 7.168 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.009732, allocations: 7.984 kB / 0.8451 GB, free: 7.16 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.00974, allocations: 3.984 kB / 0.8451 GB, free: 7.156 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.868e-05/0.009799, allocations: 77.02 kB / 0.8452 GB, free: 7.078 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.009799, allocations: 0 / 0.8452 GB, free: 7.078 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001555/0.009954, allocations: 35.92 kB / 0.8453 GB, free: 7.043 MB / 0.8073 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.001246/0.0112, allocations: 0.5162 MB / 0.8458 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.0113, allocations: 44.77 kB / 0.8458 GB, free: 6.711 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.01131, allocations: 4 kB / 0.8458 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.01134, allocations: 24.84 kB / 0.8458 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.01148, allocations: 43.91 kB / 0.8459 GB, free: 6.641 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.01182, allocations: 277.5 kB / 0.8461 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.177e-05/0.01186, allocations: 71.83 kB / 0.8462 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.578e-05/0.01191, allocations: 25.48 kB / 0.8462 GB, free: 6.219 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.833e-05/0.01199, allocations: 79.36 kB / 0.8463 GB, free: 6.141 MB / 0.8073 GB Notification: Performance of SimCode: time 7.42e-07/0.01199, allocations: 0 / 0.8463 GB, free: 6.141 MB / 0.8073 GB Notification: Performance of Templates: time 0.004541/0.01653, allocations: 2.829 MB / 0.8491 GB, free: 3.348 MB / 0.8073 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.472407079767436]