Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_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.001035/0.001035, allocations: 108 kB / 15.6 MB, free: 132 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.001101/0.001101, allocations: 192.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 222.4 MB, free: 4.434 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.692/1.692, allocations: 292.3 MB / 0.5489 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 71.53 kB / 0.6716 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1858, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002931/0.1887, allocations: 1.773 MB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.1902, allocations: 1.016 MB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.529e-05/0.1903, allocations: 0 / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002684/0.1905, allocations: 67.61 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1908, allocations: 79.66 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005046/0.1913, allocations: 198.8 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1915, allocations: 143.6 kB / 0.7867 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.036e-05/0.1916, allocations: 21.12 kB / 0.7867 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.717e-05/0.1917, allocations: 67.75 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.1918, allocations: 71.69 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.1918, allocations: 11.94 kB / 0.7868 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.1919, allocations: 63.97 kB / 0.7869 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.143e-05/0.192, allocations: 43.83 kB / 0.7869 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.294e-05/0.1921, allocations: 47.69 kB / 0.787 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.1923, allocations: 203.6 kB / 0.7872 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1924, allocations: 0 / 0.7872 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1924, allocations: 0 / 0.7872 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.1924, allocations: 4 kB / 0.7872 GB, free: 9.57 MB / 0.6075 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.0005656/0.1929, allocations: 494.7 kB / 0.7876 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.193, allocations: 12.03 kB / 0.7877 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.193, allocations: 42.67 kB / 0.7877 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.292e-05/0.1931, allocations: 16.75 kB / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1933, allocations: 248.9 kB / 0.7879 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.1933, allocations: 384 / 0.7879 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.1934, allocations: 7.938 kB / 0.788 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.1935, allocations: 96.22 kB / 0.788 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.1936, allocations: 4 kB / 0.7881 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.1936, allocations: 0 / 0.7881 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.1936, allocations: 4 kB / 0.7881 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.903e-05/0.1937, allocations: 31.92 kB / 0.7881 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000438/0.1941, allocations: 360.6 kB / 0.7884 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.1944, allocations: 98.67 kB / 0.7885 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.155e-05/0.1945, allocations: 36.84 kB / 0.7886 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1945, allocations: 0 / 0.7886 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.1947, allocations: 75.38 kB / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.512e-06/0.1947, allocations: 0 / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003295/0.195, allocations: 141.4 kB / 0.7888 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.1951, allocations: 106.8 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.1954, allocations: 275.4 kB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1954, allocations: 29.7 kB / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.859e-05/0.1955, allocations: 120 kB / 0.7893 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.1955, allocations: 15.8 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.1955, allocations: 29.7 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.1956, allocations: 322.8 kB / 0.7896 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.716e-05/0.1957, allocations: 23.98 kB / 0.7896 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.377e-05/0.1958, allocations: 80.2 kB / 0.7897 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.196, allocations: 69.64 kB / 0.7898 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.196, allocations: 0 / 0.7898 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002028/0.1962, allocations: 113.4 kB / 0.7899 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.1962, allocations: 11.94 kB / 0.7899 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1962, allocations: 4.031 kB / 0.7899 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.1962, allocations: 0 / 0.7899 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.022e-05/0.1963, allocations: 12 kB / 0.7899 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1963, allocations: 0 / 0.7899 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.58e-05/0.1964, allocations: 23.84 kB / 0.7899 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.1964, allocations: 8 kB / 0.79 GB, free: 6.434 MB / 0.6075 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.0001071/0.1965, allocations: 133.8 kB / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.063e-05/0.1966, allocations: 19.81 kB / 0.7901 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.95e-05/0.1966, allocations: 25.39 kB / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.1966, allocations: 0 / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1966, allocations: 0 / 0.7901 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1966, allocations: 3.938 kB / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.1968, allocations: 221.5 kB / 0.7903 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.1968, allocations: 0 / 0.7903 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.96e-05/0.1969, allocations: 7.938 kB / 0.7903 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1969, allocations: 0 / 0.7903 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.1969, allocations: 11.98 kB / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1969, allocations: 0 / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1969, allocations: 0 / 0.7904 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.1971, allocations: 145.2 kB / 0.7905 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.182e-05/0.1972, allocations: 92.92 kB / 0.7906 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.1972, allocations: 4 kB / 0.7906 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.221e-05/0.1973, allocations: 4 kB / 0.7906 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.1973, allocations: 11.92 kB / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.1974, allocations: 4 kB / 0.7906 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000158/0.1975, allocations: 192.6 kB / 0.7908 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1975, allocations: 4 kB / 0.7908 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002398/0.1978, allocations: 35.94 kB / 0.7908 GB, free: 5.438 MB / 0.6075 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.001289/0.1991, allocations: 0.9988 MB / 0.7918 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.1993, allocations: 79.91 kB / 0.7919 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1993, allocations: 0 / 0.7919 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.862e-05/0.1994, allocations: 39.95 kB / 0.7919 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.1997, allocations: 38.77 kB / 0.792 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.2016, allocations: 1.93 MB / 0.7938 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.2019, allocations: 0.7318 MB / 0.7946 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.625e-05/0.2019, allocations: 29.36 kB / 0.7946 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.143e-05/0.202, allocations: 51.36 kB / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of SimCode: time 3.01e-07/0.202, allocations: 0 / 0.7946 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.2213, allocations: 4.593 MB / 0.7991 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.497/7.719, allocations: 4.062 kB / 0.7991 GB, free: 13.07 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)