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.001717/0.001717, allocations: 105.4 kB / 15.7 MB, free: 24 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.002028/0.002028, allocations: 190 kB / 16.64 MB, free: 6.594 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.471/1.471, allocations: 205.1 MB / 222.5 MB, free: 4.574 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.753/1.753, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001456/0.001456, allocations: 71.48 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2206, allocations: 114.5 MB / 0.7836 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003233/0.2239, allocations: 1.769 MB / 0.7854 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.2254, allocations: 1.032 MB / 0.7864 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.663e-05/0.2255, allocations: 0 / 0.7864 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002831/0.2258, allocations: 63.67 kB / 0.7864 GB, free: 10.42 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.0002348/0.2261, allocations: 71.67 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005321/0.2266, allocations: 206.6 kB / 0.7867 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.2268, allocations: 143.7 kB / 0.7868 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.74e-05/0.2269, allocations: 17.12 kB / 0.7868 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.227, allocations: 63.7 kB / 0.7869 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.2272, allocations: 63.75 kB / 0.787 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.2272, allocations: 8 kB / 0.787 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.2273, allocations: 75.94 kB / 0.787 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.246e-05/0.2274, allocations: 39.84 kB / 0.7871 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.2275, allocations: 63.55 kB / 0.7871 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.2278, allocations: 199.7 kB / 0.7873 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2278, allocations: 0 / 0.7873 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2278, allocations: 0 / 0.7873 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.2278, allocations: 0 / 0.7873 GB, free: 9.492 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.0005806/0.2284, allocations: 492.2 kB / 0.7878 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.2284, allocations: 12.03 kB / 0.7878 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.556e-05/0.2285, allocations: 38.73 kB / 0.7879 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.944e-05/0.2285, allocations: 20.69 kB / 0.7879 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.2288, allocations: 245 kB / 0.7881 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2288, allocations: 8.375 kB / 0.7881 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.2289, allocations: 3.938 kB / 0.7881 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.2291, allocations: 100.2 kB / 0.7882 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2291, allocations: 0 / 0.7882 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.2291, allocations: 12 kB / 0.7882 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.2291, allocations: 0 / 0.7882 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001043/0.2292, allocations: 35.92 kB / 0.7883 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004575/0.2297, allocations: 360.5 kB / 0.7886 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.2299, allocations: 82.66 kB / 0.7887 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.168e-05/0.23, allocations: 40.83 kB / 0.7887 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.23, allocations: 3.984 kB / 0.7887 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.2302, allocations: 83.41 kB / 0.7888 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.674e-06/0.2302, allocations: 3.938 kB / 0.7888 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003279/0.2305, allocations: 133.5 kB / 0.7889 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.2306, allocations: 106.8 kB / 0.789 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/0.2308, allocations: 275.4 kB / 0.7893 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.2309, allocations: 33.7 kB / 0.7893 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.022e-05/0.2309, allocations: 116 kB / 0.7894 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.231, allocations: 19.8 kB / 0.7895 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.231, allocations: 25.7 kB / 0.7895 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2311, allocations: 326.8 kB / 0.7898 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.777e-05/0.2312, allocations: 27.98 kB / 0.7898 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.506e-05/0.2313, allocations: 76.2 kB / 0.7899 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.2315, allocations: 65.7 kB / 0.79 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2315, allocations: 0 / 0.79 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002059/0.2317, allocations: 117.5 kB / 0.7901 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.2317, allocations: 4 kB / 0.7901 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2317, allocations: 3.984 kB / 0.7901 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2317, allocations: 4 kB / 0.7901 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.119e-05/0.2318, allocations: 12.03 kB / 0.7901 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2319, allocations: 0 / 0.7901 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.501e-05/0.2319, allocations: 15.86 kB / 0.7901 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.2319, allocations: 4 kB / 0.7901 GB, free: 6.355 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.0001259/0.2321, allocations: 145.8 kB / 0.7903 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.2321, allocations: 11.81 kB / 0.7903 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.2322, allocations: 21.39 kB / 0.7903 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.2322, allocations: 4 kB / 0.7903 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.2322, allocations: 4 kB / 0.7903 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2322, allocations: 3.938 kB / 0.7903 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.2324, allocations: 225.5 kB / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2324, allocations: 0 / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.2324, allocations: 4 kB / 0.7905 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.2324, allocations: 192 / 0.7905 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.2325, allocations: 15.92 kB / 0.7905 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2325, allocations: 3.938 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2325, allocations: 0 / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.2327, allocations: 152.8 kB / 0.7907 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.2328, allocations: 88.92 kB / 0.7908 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.2328, allocations: 7.938 kB / 0.7908 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.997e-05/0.2329, allocations: 0 / 0.7908 GB, free: 5.582 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.2329, allocations: 15.92 kB / 0.7908 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.233, allocations: 4 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001636/0.2331, allocations: 196.6 kB / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2331, allocations: 0 / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002556/0.2334, allocations: 31.94 kB / 0.791 GB, free: 5.34 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.001338/0.2347, allocations: 0.9953 MB / 0.792 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002115/0.235, allocations: 67.91 kB / 0.792 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.235, allocations: 0 / 0.792 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.2351, allocations: 44.03 kB / 0.7921 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.2354, allocations: 49.56 kB / 0.7921 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/0.2374, allocations: 1.946 MB / 0.794 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.2377, allocations: 0.724 MB / 0.7947 GB, free: 1.543 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.556e-05/0.2378, allocations: 21.38 kB / 0.7948 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.502e-05/0.2379, allocations: 51.41 kB / 0.7948 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.2379, allocations: 0 / 0.7948 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.257, allocations: 4.603 MB / 0.7993 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.277/7.534, allocations: 9.016 kB / 0.7993 GB, free: 12.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)