Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.363/1.363, allocations: 251.9 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 179.3 kB / 326.5 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.858/1.858, allocations: 205.4 MB / 0.5775 GB, free: 20.51 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 93.38 kB / 0.6821 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.0003243, allocations: 9.188 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2318, allocations: 106.3 MB / 0.9001 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001939/0.2338, allocations: 1.458 MB / 0.9016 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2351, allocations: 0.9306 MB / 0.9025 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.255e-05/0.2352, allocations: 3.938 kB / 0.9025 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.00029/0.2355, allocations: 47.86 kB / 0.9025 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.2356, allocations: 67.8 kB / 0.9026 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.2361, allocations: 172.5 kB / 0.9028 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.2362, allocations: 87.83 kB / 0.9028 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.893e-05/0.2363, allocations: 21.11 kB / 0.9029 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.229e-05/0.2364, allocations: 59.75 kB / 0.9029 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.2365, allocations: 43.84 kB / 0.903 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.2365, allocations: 3.984 kB / 0.903 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.2366, allocations: 47.91 kB / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.599e-05/0.2367, allocations: 31.91 kB / 0.903 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.2368, allocations: 41.64 kB / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.237, allocations: 155.9 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.237, allocations: 0 / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.124e-06/0.237, allocations: 4 kB / 0.9032 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.766e-06/0.237, allocations: 0 / 0.9032 GB, free: 60.99 MB / 0.6042 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.0005362/0.2375, allocations: 460.4 kB / 0.9037 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2376, allocations: 12.03 kB / 0.9037 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.275e-05/0.2376, allocations: 38.55 kB / 0.9037 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.807e-05/0.2377, allocations: 19.77 kB / 0.9037 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.2379, allocations: 243.7 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.2379, allocations: 7.922 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.2379, allocations: 8 kB / 0.904 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.2381, allocations: 100.2 kB / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2381, allocations: 0 / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2382, allocations: 0 / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.2382, allocations: 4 kB / 0.9041 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.005e-05/0.2383, allocations: 35.94 kB / 0.9041 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004233/0.2387, allocations: 344.8 kB / 0.9044 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.2389, allocations: 94.66 kB / 0.9045 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.2389, allocations: 4.062 kB / 0.9045 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.2391, allocations: 91.36 kB / 0.9046 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.764e-06/0.2391, allocations: 0 / 0.9046 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003231/0.2395, allocations: 218.5 kB / 0.9048 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.2395, allocations: 106.8 kB / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.2397, allocations: 262.9 kB / 0.9052 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.2397, allocations: 25.7 kB / 0.9052 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.065e-05/0.2398, allocations: 116.1 kB / 0.9053 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.2398, allocations: 27.72 kB / 0.9053 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-06/0.2398, allocations: 0 / 0.9053 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.786e-05/0.2399, allocations: 330.8 kB / 0.9057 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.96e-05/0.24, allocations: 23.98 kB / 0.9057 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-05/0.24, allocations: 76.2 kB / 0.9058 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.725e-05/0.2401, allocations: 24 kB / 0.9058 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2401, allocations: 0 / 0.9058 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001747/0.2403, allocations: 117.4 kB / 0.9059 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.2403, allocations: 7.953 kB / 0.9059 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2403, allocations: 0 / 0.9059 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.2404, allocations: 8.031 kB / 0.9059 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.975e-05/0.2405, allocations: 8 kB / 0.9059 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2405, allocations: 3.984 kB / 0.9059 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.214e-05/0.2405, allocations: 7.906 kB / 0.9059 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.2406, allocations: 8 kB / 0.9059 GB, free: 57.92 MB / 0.6042 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.2407, allocations: 141.8 kB / 0.9061 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.2407, allocations: 19.75 kB / 0.9061 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.507e-05/0.2408, allocations: 25.34 kB / 0.9061 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.2408, allocations: 8 kB / 0.9061 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2408, allocations: 0 / 0.9061 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.2408, allocations: 0 / 0.9061 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.241, allocations: 221.5 kB / 0.9063 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.241, allocations: 4 kB / 0.9063 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.241, allocations: 8 kB / 0.9063 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.241, allocations: 3.984 kB / 0.9063 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.241, allocations: 0 / 0.9063 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.241, allocations: 3.953 kB / 0.9064 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2411, allocations: 0 / 0.9064 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.2413, allocations: 144.9 kB / 0.9065 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.2413, allocations: 89.11 kB / 0.9066 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.2413, allocations: 8 kB / 0.9066 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.342e-05/0.2414, allocations: 7.922 kB / 0.9066 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.47e-05/0.2415, allocations: 15.88 kB / 0.9066 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.2415, allocations: 7.984 kB / 0.9066 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001303/0.2416, allocations: 200.2 kB / 0.9068 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2416, allocations: 4 kB / 0.9068 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002367/0.2419, allocations: 35.98 kB / 0.9068 GB, free: 56.89 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001182/0.2431, allocations: 0.9936 MB / 0.9078 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001952/0.2433, allocations: 75.91 kB / 0.9079 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2433, allocations: 3.938 kB / 0.9079 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 7.666e-05/0.2434, allocations: 31.98 kB / 0.9079 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.2436, allocations: 42.2 kB / 0.908 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.2449, allocations: 1.102 MB / 0.909 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.2451, allocations: 0.7317 MB / 0.9098 GB, free: 53.97 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.719e-05/0.2452, allocations: 17.08 kB / 0.9098 GB, free: 53.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.463e-05/0.2453, allocations: 51.42 kB / 0.9098 GB, free: 53.91 MB / 0.6042 GB Notification: Performance of SimCode: time 2.5e-07/0.2453, allocations: 3.938 kB / 0.9098 GB, free: 53.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.2599, allocations: 4.127 MB / 0.9139 GB, free: 49.89 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.2601, allocations: 227.8 kB / 0.9141 GB, free: 49.65 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/1.96, allocations: 0 / 0.9141 GB, free: 49.65 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)