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.429/1.429, allocations: 252 MB / 267 MB, free: 10.96 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.0009334/0.0009335, allocations: 186.3 kB / 326.6 MB, free: 2.203 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.936/1.936, allocations: 205.4 MB / 0.5777 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.0007621/0.0007625, allocations: 94.95 kB / 0.6822 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003776/0.0003776, allocations: 8.531 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2786, allocations: 106.4 MB / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002323/0.281, allocations: 1.47 MB / 0.9017 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001625/0.2827, allocations: 0.9455 MB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.2828, allocations: 4 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003505/0.2832, allocations: 51.8 kB / 0.9027 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.2835, allocations: 55.81 kB / 0.9028 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006673/0.2842, allocations: 169.5 kB / 0.9029 GB, free: 61.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.2844, allocations: 127.6 kB / 0.9031 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.2845, allocations: 21.11 kB / 0.9031 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.2847, allocations: 51.7 kB / 0.9031 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.2848, allocations: 55.75 kB / 0.9032 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.2848, allocations: 4 kB / 0.9032 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.285, allocations: 55.97 kB / 0.9032 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.035e-05/0.2851, allocations: 39.83 kB / 0.9033 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.463e-05/0.2852, allocations: 45.64 kB / 0.9033 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.2854, allocations: 147.9 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2855, allocations: 0 / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.963e-06/0.2855, allocations: 0 / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.2855, allocations: 0 / 0.9035 GB, free: 60.93 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.0006696/0.2862, allocations: 460.4 kB / 0.9039 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.2862, allocations: 8.031 kB / 0.9039 GB, free: 60.42 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.804e-05/0.2863, allocations: 46.56 kB / 0.904 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.2863, allocations: 19.77 kB / 0.904 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.2866, allocations: 255.5 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.2866, allocations: 0 / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.2867, allocations: 4 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.2869, allocations: 92.17 kB / 0.9043 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2869, allocations: 0 / 0.9043 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.287, allocations: 8 kB / 0.9043 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.287, allocations: 7.984 kB / 0.9043 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.2871, allocations: 35.92 kB / 0.9044 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.2876, allocations: 348.8 kB / 0.9047 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.2879, allocations: 86.7 kB / 0.9048 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.82e-05/0.2879, allocations: 32.84 kB / 0.9048 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.288, allocations: 0 / 0.9048 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.2882, allocations: 87.33 kB / 0.9049 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=8): time 1.923e-06/0.2882, allocations: 0 / 0.9049 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8): time 0.0003532/0.2886, allocations: 141.4 kB / 0.905 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.2886, allocations: 102.8 kB / 0.9051 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.2888, allocations: 270.9 kB / 0.9054 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.2889, allocations: 29.7 kB / 0.9054 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.2889, allocations: 116.1 kB / 0.9055 GB, free: 58.58 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.289, allocations: 23.69 kB / 0.9055 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.289, allocations: 0 / 0.9055 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.541e-05/0.2891, allocations: 330.8 kB / 0.9059 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.908e-05/0.2891, allocations: 23.98 kB / 0.9059 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.231e-05/0.2892, allocations: 76.22 kB / 0.9059 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.776e-05/0.2893, allocations: 31.98 kB / 0.906 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2893, allocations: 0 / 0.906 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002048/0.2895, allocations: 105.5 kB / 0.9061 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.2896, allocations: 15.89 kB / 0.9061 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2896, allocations: 0 / 0.9061 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2896, allocations: 3.938 kB / 0.9061 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.917e-05/0.2897, allocations: 20.02 kB / 0.9061 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.2897, allocations: 400 / 0.9061 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.357e-05/0.2898, allocations: 7.906 kB / 0.9061 GB, free: 57.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.857e-06/0.2898, allocations: 0 / 0.9061 GB, free: 57.93 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.0001295/0.2899, allocations: 141.8 kB / 0.9063 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.29, allocations: 15.81 kB / 0.9063 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.811e-05/0.29, allocations: 25.34 kB / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.2901, allocations: 0 / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.2901, allocations: 4 kB / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2901, allocations: 0 / 0.9063 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.2903, allocations: 229.5 kB / 0.9065 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.2903, allocations: 3.984 kB / 0.9065 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.323e-05/0.2903, allocations: 7.938 kB / 0.9065 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2903, allocations: 0 / 0.9065 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.2903, allocations: 4 kB / 0.9065 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2904, allocations: 7.953 kB / 0.9065 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2904, allocations: 0 / 0.9065 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002195/0.2906, allocations: 144.9 kB / 0.9067 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.478e-05/0.2906, allocations: 100.9 kB / 0.9068 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.2907, allocations: 0 / 0.9068 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.711e-05/0.2907, allocations: 4 kB / 0.9068 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.2908, allocations: 15.94 kB / 0.9068 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.2908, allocations: 4 kB / 0.9068 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001448/0.291, allocations: 200.1 kB / 0.907 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.3e-07/0.291, allocations: 0 / 0.907 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002474/0.2912, allocations: 36.19 kB / 0.907 GB, free: 56.9 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.001591/0.2928, allocations: 1.004 MB / 0.908 GB, free: 56.03 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.2931, allocations: 67.91 kB / 0.9081 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.2931, allocations: 0 / 0.9081 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.11e-05/0.2932, allocations: 36.05 kB / 0.9081 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.0003371/0.2936, allocations: 42.95 kB / 0.9081 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.2956, allocations: 0.9695 MB / 0.9091 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.2961, allocations: 0.7318 MB / 0.9098 GB, free: 54.11 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001235/0.2962, allocations: 25.31 kB / 0.9098 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2963, allocations: 51.42 kB / 0.9099 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2963, allocations: 0 / 0.9099 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.3142, allocations: 4.141 MB / 0.9139 GB, free: 50.02 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.3144, allocations: 237.1 kB / 0.9142 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.178, allocations: 0 / 0.9142 GB, free: 49.77 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)