Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.694/1.694, allocations: 288.4 MB / 303.3 MB, free: 8.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 186.1 kB / 372 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.4 MB / 0.6307 GB, free: 9.969 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 92.97 kB / 0.744 GB, free: 5.891 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004065/0.0004071, allocations: 16.02 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2654, allocations: 115.3 MB / 0.9796 GB, free: 27.57 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.001839/0.2673, allocations: 1.455 MB / 0.9811 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.2686, allocations: 0.9455 MB / 0.982 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.559e-05/0.2686, allocations: 7.938 kB / 0.982 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.2689, allocations: 59.78 kB / 0.9821 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.2691, allocations: 51.81 kB / 0.9821 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004405/0.2695, allocations: 170 kB / 0.9823 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.2697, allocations: 127.7 kB / 0.9824 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.2698, allocations: 21.11 kB / 0.9824 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.287e-05/0.2699, allocations: 51.7 kB / 0.9825 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.606e-05/0.27, allocations: 51.77 kB / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.27, allocations: 7.984 kB / 0.9825 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.2702, allocations: 51.97 kB / 0.9826 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.073e-05/0.2702, allocations: 35.84 kB / 0.9826 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.917e-05/0.2703, allocations: 41.64 kB / 0.9826 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.2705, allocations: 148 kB / 0.9828 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2705, allocations: 4 kB / 0.9828 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.483e-06/0.2705, allocations: 0 / 0.9828 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.2705, allocations: 0 / 0.9828 GB, free: 24.32 MB / 0.6198 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.0006086/0.2711, allocations: 472.3 kB / 0.9832 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2712, allocations: 16.02 kB / 0.9832 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.2712, allocations: 38.5 kB / 0.9833 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.302e-05/0.2713, allocations: 19.77 kB / 0.9833 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/0.2716, allocations: 247.7 kB / 0.9835 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.2716, allocations: 4 kB / 0.9835 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.2716, allocations: 4 kB / 0.9835 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.2718, allocations: 96.17 kB / 0.9836 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2718, allocations: 0 / 0.9836 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.2718, allocations: 0 / 0.9836 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.2719, allocations: 4 kB / 0.9836 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.272, allocations: 31.97 kB / 0.9837 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.2724, allocations: 360.6 kB / 0.984 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.2726, allocations: 94.69 kB / 0.9841 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.35e-05/0.2727, allocations: 28.84 kB / 0.9841 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.2727, allocations: 0 / 0.9841 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.2729, allocations: 87.36 kB / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.273, allocations: 0 / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0003214/0.2733, allocations: 145.3 kB / 0.9844 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.2733, allocations: 102.8 kB / 0.9845 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.2735, allocations: 259.7 kB / 0.9847 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.2736, allocations: 29.7 kB / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.2736, allocations: 124 kB / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.2736, allocations: 23.7 kB / 0.9849 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.2737, allocations: 4 kB / 0.9849 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.753e-05/0.2737, allocations: 322.8 kB / 0.9852 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.293e-05/0.2738, allocations: 23.98 kB / 0.9852 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.733e-05/0.2739, allocations: 80.19 kB / 0.9853 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.227e-05/0.274, allocations: 40 kB / 0.9853 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.274, allocations: 0 / 0.9853 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001723/0.2741, allocations: 109.4 kB / 0.9854 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2742, allocations: 8.188 kB / 0.9854 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2742, allocations: 3.953 kB / 0.9854 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2742, allocations: 3.938 kB / 0.9854 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.909e-05/0.2743, allocations: 15.98 kB / 0.9855 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.2743, allocations: 0 / 0.9855 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.222e-05/0.2744, allocations: 7.938 kB / 0.9855 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.2744, allocations: 4.031 kB / 0.9855 GB, free: 21.3 MB / 0.6198 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.0001019/0.2745, allocations: 143.7 kB / 0.9856 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.2745, allocations: 15.81 kB / 0.9856 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.958e-05/0.2746, allocations: 21.39 kB / 0.9856 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.2746, allocations: 3.953 kB / 0.9856 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2746, allocations: 0 / 0.9856 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2746, allocations: 0 / 0.9856 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.2748, allocations: 225.6 kB / 0.9859 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2748, allocations: 0 / 0.9859 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.668e-05/0.2749, allocations: 15.92 kB / 0.9859 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2749, allocations: 0 / 0.9859 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.2749, allocations: 4 kB / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2749, allocations: 0 / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2749, allocations: 3.953 kB / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.2751, allocations: 137.3 kB / 0.986 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.043e-05/0.2752, allocations: 92.92 kB / 0.9861 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2752, allocations: 3.984 kB / 0.9861 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.684e-05/0.2753, allocations: 12 kB / 0.9861 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.2753, allocations: 15.94 kB / 0.9861 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2753, allocations: 7.938 kB / 0.9861 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.00013/0.2755, allocations: 196.4 kB / 0.9863 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2755, allocations: 0 / 0.9863 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002215/0.2757, allocations: 43.83 kB / 0.9864 GB, free: 20.29 MB / 0.6198 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.001383/0.2771, allocations: 0.9972 MB / 0.9873 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002439/0.2774, allocations: 67.91 kB / 0.9874 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2774, allocations: 0 / 0.9874 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.529e-05/0.2775, allocations: 35.98 kB / 0.9874 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.2778, allocations: 31.97 kB / 0.9875 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.2794, allocations: 0.9821 MB / 0.9884 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.2797, allocations: 0.7278 MB / 0.9891 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.702e-05/0.2798, allocations: 33.36 kB / 0.9892 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.2799, allocations: 47.42 kB / 0.9892 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of SimCode: time 4.51e-07/0.2799, allocations: 0 / 0.9892 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01536/0.2952, allocations: 4.138 MB / 0.9933 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001448/0.2954, allocations: 245.2 kB / 0.9935 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.06, allocations: 7.453 kB / 0.9935 GB, free: 13.13 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)