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: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.737/1.737, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0006077/0.0006081, allocations: 15.34 kB / 0.6737 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2845, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002572/0.2872, allocations: 1.455 MB / 0.7887 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2891, allocations: 0.9457 MB / 0.7896 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.2893, allocations: 3.938 kB / 0.7896 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.2897, allocations: 55.8 kB / 0.7897 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.29, allocations: 55.75 kB / 0.7897 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.2906, allocations: 178.4 kB / 0.7899 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.2908, allocations: 123.6 kB / 0.79 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.291, allocations: 21.11 kB / 0.79 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001206/0.2911, allocations: 51.77 kB / 0.7901 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.2912, allocations: 51.75 kB / 0.7901 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.2913, allocations: 4 kB / 0.7901 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001469/0.2914, allocations: 51.91 kB / 0.7902 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.424e-05/0.2915, allocations: 43.89 kB / 0.7902 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.801e-05/0.2916, allocations: 41.64 kB / 0.7903 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.2918, allocations: 144 kB / 0.7904 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.2918, allocations: 4 kB / 0.7904 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2918, allocations: 0 / 0.7904 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.2919, allocations: 0 / 0.7904 GB, free: 8.707 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.0008141/0.2927, allocations: 472.2 kB / 0.7909 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.2927, allocations: 12.03 kB / 0.7909 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.386e-05/0.2928, allocations: 19.77 kB / 0.7909 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.2932, allocations: 243.7 kB / 0.7911 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.2932, allocations: 4 kB / 0.7911 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.2932, allocations: 11.98 kB / 0.7911 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.2935, allocations: 96.16 kB / 0.7912 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2935, allocations: 0 / 0.7912 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.2935, allocations: 0 / 0.7912 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.2936, allocations: 0 / 0.7912 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.2937, allocations: 39.97 kB / 0.7913 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005797/0.2943, allocations: 360.5 kB / 0.7916 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.2945, allocations: 86.66 kB / 0.7917 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.273e-05/0.2946, allocations: 32.84 kB / 0.7917 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2946, allocations: 4 kB / 0.7917 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.2949, allocations: 87.39 kB / 0.7918 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 2.034e-06/0.2949, allocations: 3.938 kB / 0.7918 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003403/0.2952, allocations: 141.4 kB / 0.792 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.922e-05/0.2953, allocations: 102.8 kB / 0.7921 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.2957, allocations: 267.4 kB / 0.7923 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.2958, allocations: 25.7 kB / 0.7923 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.2959, allocations: 124.1 kB / 0.7925 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.296, allocations: 23.7 kB / 0.7925 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-06/0.296, allocations: 0 / 0.7925 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.2961, allocations: 330.8 kB / 0.7928 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.578e-05/0.2962, allocations: 27.92 kB / 0.7928 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.2963, allocations: 64.27 kB / 0.7929 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.996e-05/0.2964, allocations: 36.02 kB / 0.7929 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2965, allocations: 0 / 0.7929 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002006/0.2967, allocations: 117.4 kB / 0.793 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.2967, allocations: 4 kB / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2967, allocations: 0 / 0.793 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.2967, allocations: 7.953 kB / 0.793 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.765e-05/0.2968, allocations: 8 kB / 0.793 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.2968, allocations: 4 kB / 0.793 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.466e-05/0.2969, allocations: 15.95 kB / 0.7931 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.2969, allocations: 4 kB / 0.7931 GB, free: 5.719 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 ($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.0001444/0.2971, allocations: 149.7 kB / 0.7932 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.2971, allocations: 15.81 kB / 0.7932 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.347e-05/0.2972, allocations: 17.39 kB / 0.7932 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/0.2972, allocations: 11.95 kB / 0.7933 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2972, allocations: 0 / 0.7933 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.2972, allocations: 0 / 0.7933 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.2974, allocations: 217.6 kB / 0.7935 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2975, allocations: 4 kB / 0.7935 GB, free: 5.25 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/0.2975, allocations: 4 kB / 0.7935 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2975, allocations: 3.984 kB / 0.7935 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.2975, allocations: 0 / 0.7935 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2975, allocations: 7.938 kB / 0.7935 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2975, allocations: 3.953 kB / 0.7935 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002234/0.2978, allocations: 148.8 kB / 0.7936 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.2978, allocations: 96.92 kB / 0.7937 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.2979, allocations: 4 kB / 0.7937 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.134e-05/0.2979, allocations: 7.984 kB / 0.7937 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.298, allocations: 7.984 kB / 0.7937 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.298, allocations: 4.141 kB / 0.7937 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001746/0.2982, allocations: 192.6 kB / 0.7939 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2982, allocations: 3.938 kB / 0.7939 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002558/0.2985, allocations: 35.89 kB / 0.794 GB, free: 4.703 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 (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.001083/0.2996, allocations: 435.1 kB / 0.7944 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.2998, allocations: 71.89 kB / 0.7944 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2998, allocations: 0 / 0.7944 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.2999, allocations: 31.98 kB / 0.7945 GB, free: 4.332 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3002, allocations: 35.56 kB / 0.7945 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005962/0.3008, allocations: 314.1 kB / 0.7948 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.3012, allocations: 0.7398 MB / 0.7955 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.645e-05/0.3013, allocations: 21.08 kB / 0.7956 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.3014, allocations: 15.44 kB / 0.7956 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.3014, allocations: 0 / 0.7956 GB, free: 3.168 MB / 0.6075 GB Notification: Performance of Templates: time 0.006408/0.3078, allocations: 2.345 MB / 0.7979 GB, free: 0.8398 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: