Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007633/0.007632, allocations: 100.8 kB / 15.87 MB, free: 6.312 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.001813/0.001813, allocations: 197.4 kB / 16.79 MB, free: 6.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6944/0.6944, allocations: 115.3 MB / 406 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.34 kB / 493 MB, free: 6.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1406, allocations: 76.18 MB / 0.5558 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.002732/0.1434, allocations: 1.822 MB / 0.5576 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001533/0.145, allocations: 1.088 MB / 0.5587 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.485e-05/0.1451, allocations: 0 / 0.5587 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.1453, allocations: 55.8 kB / 0.5587 GB, free: 7.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.1455, allocations: 71.73 kB / 0.5588 GB, free: 7.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.146, allocations: 198.8 kB / 0.559 GB, free: 7.469 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1462, allocations: 131.6 kB / 0.5591 GB, free: 7.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.562e-05/0.1463, allocations: 29.08 kB / 0.5591 GB, free: 7.312 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.618e-05/0.1464, allocations: 55.72 kB / 0.5592 GB, free: 7.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.552e-05/0.1465, allocations: 59.75 kB / 0.5593 GB, free: 7.199 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.1465, allocations: 4 kB / 0.5593 GB, free: 7.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.1466, allocations: 63.94 kB / 0.5593 GB, free: 7.133 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.1467, allocations: 43.78 kB / 0.5594 GB, free: 7.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.503e-05/0.1468, allocations: 47.69 kB / 0.5594 GB, free: 7.043 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.147, allocations: 195.7 kB / 0.5596 GB, free: 6.852 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.147, allocations: 0 / 0.5596 GB, free: 6.852 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.147, allocations: 0 / 0.5596 GB, free: 6.852 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.147, allocations: 0 / 0.5596 GB, free: 6.852 MB / 430.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.0005564/0.1476, allocations: 492.3 kB / 0.5601 GB, free: 6.316 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.1476, allocations: 8.031 kB / 0.5601 GB, free: 6.309 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.1477, allocations: 46.67 kB / 0.5601 GB, free: 6.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.1477, allocations: 20.69 kB / 0.5601 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.148, allocations: 245 kB / 0.5604 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.148, allocations: 8.375 kB / 0.5604 GB, free: 5.949 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.148, allocations: 7.938 kB / 0.5604 GB, free: 5.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.1482, allocations: 96.17 kB / 0.5605 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.1482, allocations: 3.984 kB / 0.5605 GB, free: 5.828 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.1483, allocations: 0 / 0.5605 GB, free: 5.828 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1483, allocations: 4 kB / 0.5605 GB, free: 5.824 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.1484, allocations: 27.98 kB / 0.5605 GB, free: 5.797 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.1489, allocations: 368.5 kB / 0.5609 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1491, allocations: 90.66 kB / 0.561 GB, free: 5.289 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.913e-05/0.1492, allocations: 28.84 kB / 0.561 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.1492, allocations: 8 kB / 0.561 GB, free: 5.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.1494, allocations: 79.41 kB / 0.5611 GB, free: 5.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.1494, allocations: 3.938 kB / 0.5611 GB, free: 5.156 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003265/0.1497, allocations: 137.5 kB / 0.5612 GB, free: 5.016 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.1498, allocations: 106.8 kB / 0.5613 GB, free: 4.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.15, allocations: 270.7 kB / 0.5616 GB, free: 4.613 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.15, allocations: 25.7 kB / 0.5616 GB, free: 4.582 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.217e-05/0.1501, allocations: 124 kB / 0.5617 GB, free: 4.457 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.1501, allocations: 11.81 kB / 0.5617 GB, free: 4.445 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.1502, allocations: 33.7 kB / 0.5617 GB, free: 4.406 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.638e-05/0.1503, allocations: 326.8 kB / 0.5621 GB, free: 4.078 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.918e-05/0.1504, allocations: 23.98 kB / 0.5621 GB, free: 4.055 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.811e-05/0.1505, allocations: 72.2 kB / 0.5621 GB, free: 3.969 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.1506, allocations: 65.7 kB / 0.5622 GB, free: 3.898 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1506, allocations: 4 kB / 0.5622 GB, free: 3.895 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002184/0.1509, allocations: 113.4 kB / 0.5623 GB, free: 3.777 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1509, allocations: 11.98 kB / 0.5623 GB, free: 3.766 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1509, allocations: 3.938 kB / 0.5623 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.1509, allocations: 0 / 0.5623 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.934e-05/0.151, allocations: 12 kB / 0.5623 GB, free: 3.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.151, allocations: 4.031 kB / 0.5624 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.37e-05/0.1511, allocations: 19.86 kB / 0.5624 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.1511, allocations: 400 / 0.5624 GB, free: 3.727 MB / 430.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 ($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.0001102/0.1512, allocations: 146.7 kB / 0.5625 GB, free: 3.574 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.1512, allocations: 15.81 kB / 0.5625 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.1513, allocations: 21.39 kB / 0.5625 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1513, allocations: 0 / 0.5625 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1513, allocations: 0 / 0.5625 GB, free: 3.539 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.1513, allocations: 3.938 kB / 0.5625 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.1515, allocations: 225.5 kB / 0.5628 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1515, allocations: 0 / 0.5628 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.008e-05/0.1515, allocations: 12 kB / 0.5628 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1516, allocations: 0 / 0.5628 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.1516, allocations: 3.984 kB / 0.5628 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1516, allocations: 4 kB / 0.5628 GB, free: 3.246 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1516, allocations: 0 / 0.5628 GB, free: 3.246 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.1518, allocations: 144.9 kB / 0.5629 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.179e-05/0.1519, allocations: 100.9 kB / 0.563 GB, free: 2.969 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.1519, allocations: 4.188 kB / 0.563 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.309e-05/0.152, allocations: 4 kB / 0.563 GB, free: 2.961 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.152, allocations: 15.86 kB / 0.563 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.152, allocations: 0 / 0.563 GB, free: 2.945 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.1522, allocations: 200.4 kB / 0.5632 GB, free: 2.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1522, allocations: 0 / 0.5632 GB, free: 2.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.1524, allocations: 35.91 kB / 0.5633 GB, free: 2.715 MB / 430.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 (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.001243/0.1537, allocations: 1.004 MB / 0.5642 GB, free: 1.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001936/0.1539, allocations: 75.89 kB / 0.5643 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1539, allocations: 0 / 0.5643 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.6e-05/0.154, allocations: 39.92 kB / 0.5644 GB, free: 1.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.1543, allocations: 41.5 kB / 0.5644 GB, free: 1.711 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.1563, allocations: 1.963 MB / 0.5663 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.1565, allocations: 0.7204 MB / 0.567 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.369e-05/0.1566, allocations: 25.38 kB / 0.567 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.403e-05/0.1567, allocations: 47.42 kB / 0.5671 GB, free: 14.84 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.1567, allocations: 0 / 0.5671 GB, free: 14.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6539/0.8105, allocations: 4.391 MB / 0.5714 GB, free: 10.59 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003602/0.8109, allocations: 234.8 kB / 0.5716 GB, free: 10.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.14/2.951, allocations: 0 / 0.5716 GB, free: 10.33 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)