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.001445/0.001445, allocations: 101.4 kB / 15.7 MB, free: 28 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.001081/0.001082, allocations: 200.6 kB / 16.64 MB, free: 6.43 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.68/1.68, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001378/0.001378, allocations: 85.36 kB / 0.6718 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2178, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003038/0.2208, allocations: 1.768 MB / 0.7854 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.2224, allocations: 1.024 MB / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.745e-05/0.2225, allocations: 0 / 0.7864 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003126/0.2229, allocations: 67.67 kB / 0.7864 GB, free: 10.39 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.0002446/0.2231, allocations: 75.67 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.2237, allocations: 195.2 kB / 0.7867 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.2239, allocations: 147.6 kB / 0.7868 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.224, allocations: 25.11 kB / 0.7868 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/0.2241, allocations: 59.77 kB / 0.7869 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2242, allocations: 67.69 kB / 0.787 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.2243, allocations: 4 kB / 0.787 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.2244, allocations: 75.95 kB / 0.787 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.421e-05/0.2245, allocations: 39.83 kB / 0.7871 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.926e-05/0.2246, allocations: 59.61 kB / 0.7871 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.2249, allocations: 195.7 kB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2249, allocations: 0 / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2249, allocations: 4 kB / 0.7873 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.2249, allocations: 4 kB / 0.7873 GB, free: 9.461 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.0006684/0.2256, allocations: 492.2 kB / 0.7878 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2256, allocations: 16.02 kB / 0.7878 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.2257, allocations: 34.75 kB / 0.7879 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.65e-05/0.2257, allocations: 16.75 kB / 0.7879 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.2261, allocations: 248.9 kB / 0.7881 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.2261, allocations: 4.359 kB / 0.7881 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.65e-05/0.2261, allocations: 11.94 kB / 0.7881 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.2263, allocations: 96.17 kB / 0.7882 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2263, allocations: 0 / 0.7882 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.2264, allocations: 0 / 0.7882 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2264, allocations: 8 kB / 0.7882 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.2265, allocations: 31.97 kB / 0.7883 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.227, allocations: 360.6 kB / 0.7886 GB, free: 8 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.2272, allocations: 94.69 kB / 0.7887 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.974e-05/0.2273, allocations: 36.78 kB / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.2273, allocations: 0 / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.2275, allocations: 83.31 kB / 0.7888 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.2275, allocations: 0 / 0.7888 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003687/0.2279, allocations: 145.6 kB / 0.7889 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.228, allocations: 102.8 kB / 0.789 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.2283, allocations: 271.4 kB / 0.7893 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2283, allocations: 29.7 kB / 0.7893 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/0.2284, allocations: 120 kB / 0.7894 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.2284, allocations: 19.78 kB / 0.7895 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.87e-05/0.2285, allocations: 29.72 kB / 0.7895 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2286, allocations: 330.8 kB / 0.7898 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.91e-05/0.2287, allocations: 23.98 kB / 0.7898 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.676e-05/0.2288, allocations: 68.22 kB / 0.7899 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.229, allocations: 73.75 kB / 0.79 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.229, allocations: 4 kB / 0.79 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002106/0.2292, allocations: 109.4 kB / 0.7901 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.2292, allocations: 8 kB / 0.7901 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2292, allocations: 0 / 0.7901 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2292, allocations: 0 / 0.7901 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.992e-05/0.2293, allocations: 15.98 kB / 0.7901 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.2294, allocations: 0 / 0.7901 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.828e-05/0.2294, allocations: 19.86 kB / 0.7901 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2295, allocations: 4.047 kB / 0.7901 GB, free: 6.324 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.0001284/0.2296, allocations: 145.8 kB / 0.7903 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.2296, allocations: 15.81 kB / 0.7903 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.2297, allocations: 21.39 kB / 0.7903 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.2297, allocations: 0 / 0.7903 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2297, allocations: 3.938 kB / 0.7903 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.2297, allocations: 3.938 kB / 0.7903 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.2299, allocations: 225.5 kB / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2299, allocations: 0 / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.025e-05/0.23, allocations: 7.984 kB / 0.7905 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.23, allocations: 4 kB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.23, allocations: 7.938 kB / 0.7905 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.23, allocations: 4 kB / 0.7905 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.23, allocations: 192 / 0.7905 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.2302, allocations: 140.8 kB / 0.7907 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.351e-05/0.2303, allocations: 96.86 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.2303, allocations: 4 kB / 0.7908 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.589e-05/0.2304, allocations: 7.984 kB / 0.7908 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.056e-05/0.2305, allocations: 11.94 kB / 0.7908 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2305, allocations: 11.98 kB / 0.7908 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001749/0.2307, allocations: 188.5 kB / 0.791 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2307, allocations: 0 / 0.791 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002359/0.2309, allocations: 39.92 kB / 0.791 GB, free: 5.305 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.001415/0.2323, allocations: 0.9946 MB / 0.792 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002437/0.2326, allocations: 71.89 kB / 0.7921 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2326, allocations: 0 / 0.7921 GB, free: 4.375 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.068e-05/0.2327, allocations: 35.97 kB / 0.7921 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.233, allocations: 45.56 kB / 0.7921 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.2351, allocations: 1.951 MB / 0.794 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.2355, allocations: 0.7201 MB / 0.7947 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.723e-05/0.2355, allocations: 21.08 kB / 0.7948 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.043e-05/0.2356, allocations: 47.42 kB / 0.7948 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of SimCode: time 2.81e-07/0.2356, allocations: 4 kB / 0.7948 GB, free: 1.445 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2562, allocations: 4.609 MB / 0.7993 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.683/7.939, allocations: 3.984 kB / 0.7993 GB, free: 12.95 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)