Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.519/1.519, allocations: 288.4 MB / 303.6 MB, free: 8.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009299/0.0009299, allocations: 179.6 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.152/1.152, allocations: 205.4 MB / 0.631 GB, free: 9.902 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006663/0.0006663, allocations: 105.4 kB / 0.7444 GB, free: 5.809 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003201/0.0003202, allocations: 17.11 kB / 0.8676 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 115.3 MB / 0.9802 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001382/0.1418, allocations: 1.459 MB / 0.9816 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1428, allocations: 0.9415 MB / 0.9825 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.872e-05/0.1429, allocations: 0 / 0.9825 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.1431, allocations: 59.8 kB / 0.9826 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.1433, allocations: 63.75 kB / 0.9827 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.1437, allocations: 161.9 kB / 0.9828 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.1438, allocations: 127.6 kB / 0.9829 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.695e-05/0.1439, allocations: 17.12 kB / 0.9829 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.041e-05/0.144, allocations: 59.75 kB / 0.983 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.1441, allocations: 55.75 kB / 0.9831 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.1441, allocations: 0 / 0.9831 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.1442, allocations: 55.92 kB / 0.9831 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.969e-05/0.1443, allocations: 31.89 kB / 0.9831 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.047e-05/0.1443, allocations: 77.38 kB / 0.9832 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.1445, allocations: 148 kB / 0.9834 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1445, allocations: 0 / 0.9834 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1445, allocations: 0 / 0.9834 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.1445, allocations: 4 kB / 0.9834 GB, free: 23.98 MB / 0.6198 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.0004169/0.1449, allocations: 468.4 kB / 0.9838 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.145, allocations: 8.031 kB / 0.9838 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.145, allocations: 42.73 kB / 0.9839 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.145, allocations: 16.75 kB / 0.9839 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.1452, allocations: 244.9 kB / 0.9841 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.1452, allocations: 4.375 kB / 0.9841 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.1453, allocations: 11.94 kB / 0.9841 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.1454, allocations: 100.1 kB / 0.9842 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.1454, allocations: 4 kB / 0.9842 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1455, allocations: 3.984 kB / 0.9842 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.1455, allocations: 0 / 0.9842 GB, free: 22.97 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.613e-05/0.1456, allocations: 35.98 kB / 0.9843 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.1459, allocations: 356.6 kB / 0.9846 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.1461, allocations: 86.66 kB / 0.9847 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.769e-05/0.1462, allocations: 36.78 kB / 0.9847 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.1462, allocations: 96 / 0.9847 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.1464, allocations: 87.31 kB / 0.9848 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.1464, allocations: 0 / 0.9848 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0002637/0.1466, allocations: 137.7 kB / 0.9849 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.1467, allocations: 102.8 kB / 0.985 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.1469, allocations: 271.5 kB / 0.9853 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.1469, allocations: 25.7 kB / 0.9853 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.324e-05/0.1469, allocations: 120.1 kB / 0.9854 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.1469, allocations: 23.73 kB / 0.9854 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.147, allocations: 0 / 0.9854 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.959e-05/0.147, allocations: 334.8 kB / 0.9858 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.834e-05/0.1471, allocations: 23.98 kB / 0.9858 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.756e-05/0.1471, allocations: 60.28 kB / 0.9858 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.1473, allocations: 73.75 kB / 0.9859 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1473, allocations: 4 kB / 0.9859 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001753/0.1474, allocations: 117.4 kB / 0.986 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1475, allocations: 4 kB / 0.986 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1475, allocations: 0 / 0.986 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1475, allocations: 0 / 0.986 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.918e-05/0.1476, allocations: 15.98 kB / 0.9861 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.1476, allocations: 3.938 kB / 0.9861 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.092e-05/0.1477, allocations: 19.78 kB / 0.9861 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.1477, allocations: 4 kB / 0.9861 GB, free: 20.91 MB / 0.6198 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.0001031/0.1478, allocations: 149 kB / 0.9862 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.1479, allocations: 15.81 kB / 0.9862 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.179e-05/0.1479, allocations: 21.39 kB / 0.9863 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.1479, allocations: 4 kB / 0.9863 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1479, allocations: 0 / 0.9863 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.148, allocations: 3.938 kB / 0.9863 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.1481, allocations: 217.6 kB / 0.9865 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.1481, allocations: 7.984 kB / 0.9865 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.452e-05/0.1482, allocations: 4 kB / 0.9865 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1482, allocations: 8 kB / 0.9865 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.1482, allocations: 0 / 0.9865 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1482, allocations: 0 / 0.9865 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1482, allocations: 192 / 0.9865 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.1484, allocations: 148.8 kB / 0.9866 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.1485, allocations: 100.8 kB / 0.9867 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.1485, allocations: 4 kB / 0.9867 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.152e-05/0.1486, allocations: 0 / 0.9867 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.1486, allocations: 23.86 kB / 0.9868 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1486, allocations: 4 kB / 0.9868 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001156/0.1488, allocations: 200.4 kB / 0.9869 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.71e-07/0.1488, allocations: 0 / 0.9869 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002066/0.149, allocations: 35.94 kB / 0.987 GB, free: 19.89 MB / 0.6198 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.00096/0.1499, allocations: 1.005 MB / 0.988 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001616/0.1501, allocations: 63.95 kB / 0.988 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1501, allocations: 0 / 0.988 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.133e-05/0.1502, allocations: 43.91 kB / 0.9881 GB, free: 18.92 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.1504, allocations: 33.27 kB / 0.9881 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.1515, allocations: 0.971 MB / 0.989 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.1516, allocations: 0.7239 MB / 0.9898 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.09e-05/0.1517, allocations: 21.08 kB / 0.9898 GB, free: 17.09 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.09e-05/0.1518, allocations: 47.42 kB / 0.9898 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.1518, allocations: 0 / 0.9898 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.186/1.338, allocations: 4.17 MB / 0.9939 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/1.338, allocations: 235.8 kB / 0.9941 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/3.132, allocations: 3.938 kB / 0.9941 GB, free: 12.73 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)