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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.001252/0.001252, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001315/0.001315, allocations: 195.9 kB / 16.14 MB, free: 6.672 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 282.5 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9454/0.9454, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 89.97 kB / 0.5946 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1514, allocations: 86.97 MB / 0.6795 GB, free: 1.129 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002927/0.1544, allocations: 1.828 MB / 0.6813 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.1561, allocations: 1.094 MB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.59e-05/0.1562, allocations: 4 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.1565, allocations: 48.53 kB / 0.6824 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.1567, allocations: 69.52 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.1572, allocations: 195.6 kB / 0.6827 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1574, allocations: 140.3 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.585e-05/0.1575, allocations: 22.25 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.949e-05/0.1576, allocations: 64.2 kB / 0.6829 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.1577, allocations: 57.02 kB / 0.683 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/0.1577, allocations: 7.984 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.1579, allocations: 63.91 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.627e-05/0.1579, allocations: 35.84 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.239e-05/0.158, allocations: 52.47 kB / 0.6831 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.1582, allocations: 187.4 kB / 0.6833 GB, free: 13.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1583, allocations: 8 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1583, allocations: 0 / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1583, allocations: 0 / 0.6833 GB, free: 13.27 MB / 494.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.000597/0.1589, allocations: 496.3 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1589, allocations: 12.03 kB / 0.6838 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.415e-05/0.159, allocations: 38.69 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.159, allocations: 16.75 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.1593, allocations: 253.5 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.1593, allocations: 8.359 kB / 0.6841 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1593, allocations: 7.938 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.1595, allocations: 96.17 kB / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.1595, allocations: 3.984 kB / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1595, allocations: 0 / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.1596, allocations: 4 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.1597, allocations: 31.97 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.1601, allocations: 360.6 kB / 0.6846 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.1604, allocations: 90.66 kB / 0.6847 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.316e-05/0.1604, allocations: 32.84 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.1605, allocations: 0 / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.1607, allocations: 87.39 kB / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.1607, allocations: 0 / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003436/0.161, allocations: 141.5 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.1611, allocations: 102.8 kB / 0.685 GB, free: 11.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.1613, allocations: 262.9 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.1614, allocations: 29.7 kB / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.059e-05/0.1614, allocations: 116.1 kB / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.1615, allocations: 31.62 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.1615, allocations: 25.72 kB / 0.6854 GB, free: 10.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1616, allocations: 338.7 kB / 0.6858 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.119e-05/0.1617, allocations: 27.98 kB / 0.6858 GB, free: 10.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.1618, allocations: 64.22 kB / 0.6859 GB, free: 10.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.162, allocations: 77.69 kB / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.162, allocations: 0 / 0.6859 GB, free: 10.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002077/0.1622, allocations: 113.7 kB / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1622, allocations: 4 kB / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1622, allocations: 0 / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1622, allocations: 0 / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.318e-05/0.1623, allocations: 15.98 kB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1624, allocations: 80 / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.1624, allocations: 11.94 kB / 0.6861 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.1624, allocations: 12.02 kB / 0.6861 GB, free: 10.14 MB / 494.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.0001206/0.1626, allocations: 141.8 kB / 0.6862 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.1626, allocations: 15.81 kB / 0.6862 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.578e-05/0.1627, allocations: 21.39 kB / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1627, allocations: 0 / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1627, allocations: 4 kB / 0.6863 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1627, allocations: 3.938 kB / 0.6863 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.1629, allocations: 221.6 kB / 0.6865 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1629, allocations: 0 / 0.6865 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.1629, allocations: 11.98 kB / 0.6865 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1629, allocations: 0 / 0.6865 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.163, allocations: 4 kB / 0.6865 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.163, allocations: 0 / 0.6865 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.163, allocations: 4 kB / 0.6865 GB, free: 9.66 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.1632, allocations: 144.8 kB / 0.6866 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1633, allocations: 92.86 kB / 0.6867 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.1633, allocations: 4 kB / 0.6867 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.244e-05/0.1634, allocations: 11.98 kB / 0.6867 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.213e-05/0.1634, allocations: 15.91 kB / 0.6867 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.1634, allocations: 4 kB / 0.6868 GB, free: 9.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.1636, allocations: 192.6 kB / 0.6869 GB, free: 9.168 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1636, allocations: 0 / 0.6869 GB, free: 9.168 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.1639, allocations: 35.98 kB / 0.687 GB, free: 9.133 MB / 494.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.001298/0.1652, allocations: 1 MB / 0.6879 GB, free: 8.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001991/0.1654, allocations: 71.91 kB / 0.688 GB, free: 8.199 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1654, allocations: 0 / 0.688 GB, free: 8.199 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.024e-05/0.1655, allocations: 31.98 kB / 0.688 GB, free: 8.168 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.1658, allocations: 49.09 kB / 0.6881 GB, free: 8.121 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.1678, allocations: 1.969 MB / 0.69 GB, free: 6.062 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.1681, allocations: 0.7204 MB / 0.6907 GB, free: 5.316 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.543e-05/0.1681, allocations: 29.31 kB / 0.6907 GB, free: 5.289 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.1682, allocations: 47.41 kB / 0.6908 GB, free: 5.242 MB / 494.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1682, allocations: 4 kB / 0.6908 GB, free: 5.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01501/0.1832, allocations: 4.41 MB / 0.6951 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.1835, allocations: 253.5 kB / 0.6953 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/1.874, allocations: 0 / 0.6953 GB, free: 0.7305 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)