Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008885/0.0008885, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009468/0.0009468, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001726/0.001726, allocations: 270.8 kB / 291.2 MB, free: 1.887 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7541/0.7541, allocations: 144.6 MB / 487 MB, free: 7.195 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003849, allocations: 12.94 kB / 0.5683 GB, free: 38.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1429, allocations: 83.08 MB / 0.6494 GB, free: 3.645 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002588/0.1455, allocations: 1.442 MB / 0.6508 GB, free: 2.195 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1474, allocations: 0.9861 MB / 0.6518 GB, free: 1.207 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.1476, allocations: 7.938 kB / 0.6518 GB, free: 1.199 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003667/0.148, allocations: 43.88 kB / 0.6518 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003167/0.1483, allocations: 68.7 kB / 0.6519 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006837/0.149, allocations: 180.1 kB / 0.6521 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.1493, allocations: 89.33 kB / 0.6522 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1494, allocations: 25.08 kB / 0.6522 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.1495, allocations: 52.42 kB / 0.6522 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1496, allocations: 52.52 kB / 0.6523 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.1496, allocations: 0 / 0.6523 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.1498, allocations: 48.62 kB / 0.6523 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.1499, allocations: 35.89 kB / 0.6524 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.1499, allocations: 46.61 kB / 0.6524 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.1502, allocations: 155.9 kB / 0.6526 GB, free: 428 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.1502, allocations: 0 / 0.6526 GB, free: 428 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1502, allocations: 5.531 kB / 0.6526 GB, free: 424 kB / 446.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1502, allocations: 0 / 0.6526 GB, free: 424 kB / 446.1 MB 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.0007839/0.151, allocations: 457.1 kB / 0.653 GB, free: 15.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1511, allocations: 12.03 kB / 0.653 GB, free: 15.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.1512, allocations: 16.97 kB / 0.653 GB, free: 15.89 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003754/0.1515, allocations: 259.5 kB / 0.6533 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.1516, allocations: 7.953 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.1516, allocations: 4.656 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.1518, allocations: 89.36 kB / 0.6534 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.1519, allocations: 4.719 kB / 0.6534 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.1519, allocations: 0 / 0.6534 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.1519, allocations: 0.875 kB / 0.6534 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.152, allocations: 43.89 kB / 0.6534 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005511/0.1526, allocations: 359.2 kB / 0.6538 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.1528, allocations: 83.39 kB / 0.6538 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.1528, allocations: 4.938 kB / 0.6539 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.153, allocations: 80.19 kB / 0.6539 GB, free: 14.85 MB / 462.1 MB Notification: Performance of pre-optimization done (n=8): time 2.534e-06/0.1531, allocations: 6.281 kB / 0.6539 GB, free: 14.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003796/0.1534, allocations: 218.5 kB / 0.6541 GB, free: 14.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.1535, allocations: 102.8 kB / 0.6542 GB, free: 14.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.1538, allocations: 263 kB / 0.6545 GB, free: 14.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1538, allocations: 29.7 kB / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.271e-05/0.1539, allocations: 112.8 kB / 0.6546 GB, free: 14.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.227e-05/0.1539, allocations: 29.14 kB / 0.6547 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-06/0.1539, allocations: 0 / 0.6547 GB, free: 14.04 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1541, allocations: 334.8 kB / 0.655 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.734e-05/0.1541, allocations: 24.8 kB / 0.655 GB, free: 13.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.1543, allocations: 75.31 kB / 0.6551 GB, free: 13.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.404e-05/0.1544, allocations: 44.23 kB / 0.6551 GB, free: 13.55 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1544, allocations: 0 / 0.6551 GB, free: 13.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002031/0.1546, allocations: 105.5 kB / 0.6552 GB, free: 13.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1546, allocations: 9.438 kB / 0.6552 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1546, allocations: 0 / 0.6552 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.1546, allocations: 0 / 0.6552 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.472e-05/0.1547, allocations: 19.92 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1548, allocations: 0.6562 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.548e-05/0.1548, allocations: 9.656 kB / 0.6553 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1548, allocations: 7.984 kB / 0.6553 GB, free: 13.4 MB / 462.1 MB 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.0001304/0.155, allocations: 141.8 kB / 0.6554 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.155, allocations: 16.91 kB / 0.6554 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.122e-05/0.1551, allocations: 17.41 kB / 0.6554 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1551, allocations: 0 / 0.6554 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1551, allocations: 8.016 kB / 0.6554 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1551, allocations: 0 / 0.6554 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.1553, allocations: 237.4 kB / 0.6557 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1553, allocations: 0 / 0.6557 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-05/0.1553, allocations: 4 kB / 0.6557 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1554, allocations: 0 / 0.6557 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.1554, allocations: 4 kB / 0.6557 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.4e-05/0.1554, allocations: 4 kB / 0.6557 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1554, allocations: 0 / 0.6557 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002215/0.1556, allocations: 144.8 kB / 0.6558 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.041e-05/0.1557, allocations: 97 kB / 0.6559 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.1557, allocations: 0 / 0.6559 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.401e-05/0.1558, allocations: 4 kB / 0.6559 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.1558, allocations: 15.97 kB / 0.6559 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.1559, allocations: 4 kB / 0.6559 GB, free: 12.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.156, allocations: 192.6 kB / 0.6561 GB, free: 12.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1561, allocations: 0 / 0.6561 GB, free: 12.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002469/0.1563, allocations: 39.91 kB / 0.6561 GB, free: 12.39 MB / 462.1 MB 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.0009272/0.1572, allocations: 420.8 kB / 0.6565 GB, free: 12.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002074/0.1575, allocations: 79.88 kB / 0.6566 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1575, allocations: 0 / 0.6566 GB, free: 12.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 8.233e-05/0.1576, allocations: 31.98 kB / 0.6567 GB, free: 12.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.1578, allocations: 41.22 kB / 0.6567 GB, free: 11.99 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.1583, allocations: 314.2 kB / 0.657 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1586, allocations: 0.7282 MB / 0.6577 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.807e-05/0.1587, allocations: 25.38 kB / 0.6577 GB, free: 10.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.237e-05/0.1588, allocations: 19.42 kB / 0.6577 GB, free: 10.86 MB / 462.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1588, allocations: 4 kB / 0.6578 GB, free: 10.86 MB / 462.1 MB Notification: Performance of Templates: time 0.005015/0.1638, allocations: 2.35 MB / 0.66 GB, free: 8.535 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: