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.001356/0.001356, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002464/0.002464, allocations: 287 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.047/1.047, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 103.1 kB / 0.6065 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1693, allocations: 89.15 MB / 0.6936 GB, free: 4.23 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003335/0.1727, allocations: 1.765 MB / 0.6953 GB, free: 2.457 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.1745, allocations: 1.104 MB / 0.6964 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.336e-05/0.1746, allocations: 3.938 kB / 0.6964 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003021/0.175, allocations: 63.72 kB / 0.6965 GB, free: 1.281 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.1752, allocations: 79.67 kB / 0.6965 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005777/0.1758, allocations: 213.4 kB / 0.6967 GB, free: 1 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002034/0.176, allocations: 148.2 kB / 0.6969 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1761, allocations: 34.53 kB / 0.6969 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.474e-05/0.1762, allocations: 59.77 kB / 0.697 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.1764, allocations: 66.39 kB / 0.697 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.1764, allocations: 8 kB / 0.6971 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1765, allocations: 63.95 kB / 0.6971 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.711e-05/0.1766, allocations: 35.84 kB / 0.6971 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.892e-05/0.1767, allocations: 63.59 kB / 0.6972 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.177, allocations: 199.7 kB / 0.6974 GB, free: 348 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.177, allocations: 0 / 0.6974 GB, free: 348 kB / 494.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.177, allocations: 1.531 kB / 0.6974 GB, free: 348 kB / 494.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.177, allocations: 0 / 0.6974 GB, free: 348 kB / 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.0007064/0.1777, allocations: 492.9 kB / 0.6979 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1778, allocations: 12.02 kB / 0.6979 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.1778, allocations: 40.31 kB / 0.6979 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.1779, allocations: 16.75 kB / 0.6979 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.1782, allocations: 244.9 kB / 0.6982 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.084e-05/0.1783, allocations: 8.375 kB / 0.6982 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.788e-05/0.1783, allocations: 12.53 kB / 0.6982 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002135/0.1785, allocations: 100.2 kB / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1785, allocations: 0 / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.1785, allocations: 0 / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.1785, allocations: 0 / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.1787, allocations: 39.92 kB / 0.6983 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005267/0.1792, allocations: 352.6 kB / 0.6987 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.1794, allocations: 94.69 kB / 0.6987 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.557e-05/0.1795, allocations: 32.84 kB / 0.6988 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1796, allocations: 0 / 0.6988 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.1798, allocations: 87.36 kB / 0.6989 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.1798, allocations: 4 kB / 0.6989 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000356/0.1802, allocations: 133.4 kB / 0.699 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.1802, allocations: 106.8 kB / 0.6991 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.1805, allocations: 266.9 kB / 0.6994 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.1805, allocations: 25.7 kB / 0.6994 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.1806, allocations: 120 kB / 0.6995 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.1807, allocations: 31.66 kB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.1807, allocations: 21.72 kB / 0.6995 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1809, allocations: 338.8 kB / 0.6999 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.181, allocations: 23.98 kB / 0.6999 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.1811, allocations: 64.28 kB / 0.6999 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.1812, allocations: 73.62 kB / 0.7 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1813, allocations: 4 kB / 0.7 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002143/0.1815, allocations: 109.5 kB / 0.7001 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1815, allocations: 4 kB / 0.7001 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1815, allocations: 7.938 kB / 0.7001 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.1815, allocations: 0 / 0.7001 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.742e-05/0.1816, allocations: 11.98 kB / 0.7001 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.1816, allocations: 4 kB / 0.7002 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.053e-05/0.1817, allocations: 7.938 kB / 0.7002 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.1817, allocations: 0 / 0.7002 GB, free: 13.23 MB / 0.4981 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 ($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.0001435/0.1819, allocations: 149.1 kB / 0.7003 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.1819, allocations: 16 kB / 0.7003 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.309e-05/0.1819, allocations: 17.39 kB / 0.7003 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.182, allocations: 7.938 kB / 0.7003 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.182, allocations: 0 / 0.7003 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.182, allocations: 3.938 kB / 0.7003 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.1822, allocations: 225.5 kB / 0.7006 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1822, allocations: 0 / 0.7006 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.06e-05/0.1823, allocations: 19.92 kB / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1823, allocations: 0 / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.1823, allocations: 4 kB / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1823, allocations: 0 / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1823, allocations: 0 / 0.7006 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.1826, allocations: 140.9 kB / 0.7007 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.1827, allocations: 100.9 kB / 0.7008 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.1827, allocations: 0 / 0.7008 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.558e-05/0.1827, allocations: 7.984 kB / 0.7008 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.1828, allocations: 15.92 kB / 0.7008 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.1828, allocations: 7.984 kB / 0.7008 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002024/0.183, allocations: 192.6 kB / 0.701 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.104e-06/0.183, allocations: 0 / 0.701 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002501/0.1833, allocations: 39.88 kB / 0.7011 GB, free: 12.21 MB / 0.4981 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 (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.00197/0.1853, allocations: 1.002 MB / 0.702 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002467/0.1855, allocations: 75.89 kB / 0.7021 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1855, allocations: 0 / 0.7021 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.049e-05/0.1856, allocations: 31.98 kB / 0.7021 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.1859, allocations: 35.91 kB / 0.7022 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.1883, allocations: 1.947 MB / 0.7041 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.1887, allocations: 0.724 MB / 0.7048 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.26e-05/0.1888, allocations: 21.38 kB / 0.7048 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.1889, allocations: 51.41 kB / 0.7049 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1889, allocations: 0 / 0.7049 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.2168, allocations: 4.621 MB / 0.7094 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.495/7.712, allocations: 10.97 kB / 0.7094 GB, free: 3.855 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)