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.001071/0.001071, allocations: 109.4 kB / 15.69 MB, free: 128 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.001147/0.001148, allocations: 189.5 kB / 16.62 MB, free: 6.582 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.24/1.24, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.624/1.624, allocations: 292.3 MB / 0.549 GB, free: 12.79 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.001422/0.001422, allocations: 69.97 kB / 0.6723 GB, free: 25.9 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1974, allocations: 114.5 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003159/0.2006, allocations: 1.769 MB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001555/0.2022, allocations: 1.028 MB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.553e-05/0.2023, allocations: 0 / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002845/0.2026, allocations: 67.61 kB / 0.7869 GB, free: 9.871 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.0002541/0.2029, allocations: 71.67 kB / 0.787 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.2035, allocations: 194.4 kB / 0.7872 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002022/0.2037, allocations: 143.7 kB / 0.7873 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.2038, allocations: 29.09 kB / 0.7873 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.2039, allocations: 59.77 kB / 0.7874 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.2041, allocations: 67.69 kB / 0.7874 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.2041, allocations: 4 kB / 0.7875 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.2043, allocations: 71.95 kB / 0.7875 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.365e-05/0.2044, allocations: 39.84 kB / 0.7876 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.731e-05/0.2045, allocations: 63.59 kB / 0.7876 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002946/0.2048, allocations: 203.4 kB / 0.7878 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2048, allocations: 4 kB / 0.7878 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2048, allocations: 4 kB / 0.7878 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.2048, allocations: 0 / 0.7878 GB, free: 8.938 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.0007126/0.2055, allocations: 492.2 kB / 0.7883 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2056, allocations: 12.03 kB / 0.7883 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.2056, allocations: 16.75 kB / 0.7883 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.2059, allocations: 244.9 kB / 0.7886 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.206, allocations: 8.359 kB / 0.7886 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.206, allocations: 8.125 kB / 0.7886 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.2062, allocations: 96.23 kB / 0.7887 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.2062, allocations: 3.938 kB / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.2062, allocations: 0 / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.2063, allocations: 0 / 0.7887 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.2064, allocations: 39.91 kB / 0.7887 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004906/0.2069, allocations: 352.6 kB / 0.789 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.2071, allocations: 94.69 kB / 0.7891 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.988e-05/0.2072, allocations: 32.84 kB / 0.7892 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.2072, allocations: 0 / 0.7892 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/0.2074, allocations: 83.36 kB / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.2074, allocations: 0 / 0.7892 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0003394/0.2077, allocations: 145.4 kB / 0.7894 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.2078, allocations: 102.8 kB / 0.7895 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.208, allocations: 267.5 kB / 0.7897 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.2081, allocations: 25.7 kB / 0.7898 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.2082, allocations: 120 kB / 0.7899 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.2082, allocations: 15.8 kB / 0.7899 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.2082, allocations: 33.7 kB / 0.7899 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.2083, allocations: 346.7 kB / 0.7902 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.671e-05/0.2084, allocations: 23.98 kB / 0.7903 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.943e-05/0.2085, allocations: 60.28 kB / 0.7903 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.2087, allocations: 73.62 kB / 0.7904 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2087, allocations: 0 / 0.7904 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002081/0.2089, allocations: 117.4 kB / 0.7905 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2089, allocations: 4 kB / 0.7905 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2089, allocations: 4 kB / 0.7905 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2089, allocations: 4.031 kB / 0.7905 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.854e-05/0.209, allocations: 11.98 kB / 0.7905 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.209, allocations: 4 kB / 0.7905 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.639e-05/0.2091, allocations: 15.88 kB / 0.7906 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.2091, allocations: 0 / 0.7906 GB, free: 5.859 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.000113/0.2092, allocations: 146.5 kB / 0.7907 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.2093, allocations: 15.81 kB / 0.7907 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.2093, allocations: 17.39 kB / 0.7907 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.2093, allocations: 4 kB / 0.7907 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2093, allocations: 4 kB / 0.7907 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2094, allocations: 3.938 kB / 0.7907 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.2095, allocations: 229.4 kB / 0.791 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2095, allocations: 0 / 0.791 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/0.2096, allocations: 12.17 kB / 0.791 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2096, allocations: 0 / 0.791 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.2096, allocations: 3.938 kB / 0.791 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2096, allocations: 4 kB / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.2096, allocations: 0 / 0.791 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.2099, allocations: 141.2 kB / 0.7911 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.2099, allocations: 85.02 kB / 0.7912 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.21, allocations: 8 kB / 0.7912 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.341e-05/0.21, allocations: 3.984 kB / 0.7912 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.2101, allocations: 4 kB / 0.7912 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.2101, allocations: 23.91 kB / 0.7912 GB, free: 5.07 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001577/0.2103, allocations: 188.6 kB / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.533e-06/0.2103, allocations: 0 / 0.7914 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002446/0.2105, allocations: 39.83 kB / 0.7914 GB, free: 4.848 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.0009061/0.2114, allocations: 435 kB / 0.7919 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002116/0.2117, allocations: 71.94 kB / 0.7919 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2117, allocations: 4.062 kB / 0.7919 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.016e-05/0.2118, allocations: 35.92 kB / 0.792 GB, free: 4.465 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.212, allocations: 41.45 kB / 0.792 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004701/0.2125, allocations: 286.9 kB / 0.7923 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.2128, allocations: 0.7201 MB / 0.793 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.286e-05/0.2129, allocations: 29.36 kB / 0.793 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.2129, allocations: 23.44 kB / 0.793 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/0.2129, allocations: 0 / 0.793 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of Templates: time 0.005501/0.2184, allocations: 2.545 MB / 0.7955 GB, free: 0.8125 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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)