Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.004/5.004, allocations: 0.5623 GB / 0.5769 GB, free: 3.363 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002433/0.002432, allocations: 356.1 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.37/4.37, allocations: 410.7 MB / 1.112 GB, free: 6.039 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001755/0.001755, allocations: 176.3 kB / 1.225 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004989/0.0004992, allocations: 15.98 kB / 1.348 GB, free: 8.305 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.59/0.5905, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.00183/0.5924, allocations: 1.457 MB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001456/0.5939, allocations: 0.9198 MB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.209e-05/0.594, allocations: 4 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.5943, allocations: 53.14 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.5945, allocations: 55.75 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006209/0.5951, allocations: 171.7 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.5953, allocations: 127.6 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.727e-05/0.5954, allocations: 22.95 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.869e-05/0.5955, allocations: 51.77 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.169e-05/0.5956, allocations: 52.53 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.5957, allocations: 6.406 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.5958, allocations: 51.92 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 6.114e-05/0.5959, allocations: 39.83 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.051e-05/0.596, allocations: 45.62 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.5962, allocations: 145.8 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.002e-06/0.5962, allocations: 4 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.789e-06/0.5962, allocations: 0 / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.5962, allocations: 0.5625 kB / 1.464 GB, free: 281.2 MB / 0.8542 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.0005446/0.5968, allocations: 467.1 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.5968, allocations: 19.61 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.5969, allocations: 19.77 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.5972, allocations: 240.3 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.5972, allocations: 4 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.5972, allocations: 9.438 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002162/0.5975, allocations: 96.75 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-06/0.5975, allocations: 1.359 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.5975, allocations: 1.438 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.5975, allocations: 0 / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.5977, allocations: 39.94 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.5982, allocations: 353.8 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.5985, allocations: 84.66 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.129e-05/0.5986, allocations: 33.34 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.5986, allocations: 4.484 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.5989, allocations: 90.78 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 3.043e-06/0.5989, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0004098/0.5993, allocations: 133.5 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.5993, allocations: 103.3 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.5996, allocations: 262.4 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.5997, allocations: 29.7 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.5997, allocations: 113.3 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/0.5998, allocations: 27.64 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-06/0.5998, allocations: 3.938 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.314e-05/0.5999, allocations: 336.2 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.821e-05/0.6, allocations: 23.98 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.6001, allocations: 73.41 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/0.6002, allocations: 28.95 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.012e-06/0.6002, allocations: 0.9062 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002699/0.6005, allocations: 114.1 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.6005, allocations: 7.953 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.87e-06/0.6006, allocations: 0.7812 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.6006, allocations: 4 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.6007, allocations: 12.77 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.793e-06/0.6007, allocations: 4 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/0.6008, allocations: 8.625 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.6009, allocations: 4.797 kB / 1.466 GB, free: 278.3 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.601, allocations: 139.6 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.243e-05/0.601, allocations: 15.81 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.044e-05/0.6011, allocations: 21.36 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.6011, allocations: 7.938 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.666e-06/0.6011, allocations: 5.172 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.908e-06/0.6012, allocations: 1.266 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/0.6014, allocations: 221.5 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.16e-06/0.6014, allocations: 5.656 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.492e-05/0.6014, allocations: 8 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.6015, allocations: 0 / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.6015, allocations: 4 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.72e-06/0.6015, allocations: 3.953 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.6015, allocations: 0.6562 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.6018, allocations: 138.5 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.783e-05/0.6019, allocations: 101.6 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.6019, allocations: 0.625 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.602, allocations: 7.984 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.013e-05/0.6021, allocations: 13.19 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.6021, allocations: 4 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001864/0.6023, allocations: 206.7 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.7e-07/0.6023, allocations: 0 / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003622/0.6027, allocations: 29.97 kB / 1.467 GB, free: 277.3 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.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.6041, allocations: 429.7 kB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002892/0.6044, allocations: 71.94 kB / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.159e-06/0.6044, allocations: 0 / 1.468 GB, free: 277 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.6046, allocations: 35.92 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.6049, allocations: 34.8 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000582/0.6055, allocations: 309.7 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.6057, allocations: 0.7299 MB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000114/0.6059, allocations: 26.22 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.797e-05/0.6059, allocations: 19.95 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of SimCode: time 1.988e-06/0.6059, allocations: 1.438 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.006796/0.6128, allocations: 2.366 MB / 1.471 GB, free: 273.6 MB / 0.8542 GB