Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator") translateModel(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.00173/0.001731, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002153/0.002154, allocations: 193.6 kB / 16.14 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002521/0.002521, allocations: 274.9 kB / 290.2 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 178.6 MB / 0.5068 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003831/0.003831, allocations: 102 kB / 0.6057 GB, free: 25.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2053, allocations: 89.15 MB / 0.6928 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.003183/0.2085, allocations: 1.83 MB / 0.6946 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.2103, allocations: 1.096 MB / 0.6956 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.283e-05/0.2104, allocations: 0 / 0.6956 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.2107, allocations: 55.81 kB / 0.6957 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.2109, allocations: 71.73 kB / 0.6958 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.2115, allocations: 195 kB / 0.696 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.2117, allocations: 131.7 kB / 0.6961 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.026e-05/0.2118, allocations: 17.12 kB / 0.6961 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.981e-05/0.2119, allocations: 63.69 kB / 0.6962 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.212, allocations: 55.77 kB / 0.6962 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.212, allocations: 7.984 kB / 0.6962 GB, free: 1.332 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.2122, allocations: 63.91 kB / 0.6963 GB, free: 1.27 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.35e-05/0.2122, allocations: 35.84 kB / 0.6963 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.2123, allocations: 59.66 kB / 0.6964 GB, free: 1.176 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.2126, allocations: 191.7 kB / 0.6966 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2126, allocations: 0 / 0.6966 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.2126, allocations: 0 / 0.6966 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.2126, allocations: 0 / 0.6966 GB, free: 0.9883 MB / 494.1 MB 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.0006885/0.2133, allocations: 0.4924 MB / 0.697 GB, free: 452 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.2134, allocations: 8.031 kB / 0.697 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.448e-05/0.2134, allocations: 16.75 kB / 0.6971 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.2137, allocations: 248.9 kB / 0.6973 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.2138, allocations: 384 / 0.6973 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.2138, allocations: 8.125 kB / 0.6973 GB, free: 132 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.214, allocations: 100.2 kB / 0.6974 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.214, allocations: 0 / 0.6974 GB, free: 16 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.2141, allocations: 4 kB / 0.6974 GB, free: 12 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.2141, allocations: 7.984 kB / 0.6974 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.2142, allocations: 31.98 kB / 0.6974 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005261/0.2147, allocations: 356.5 kB / 0.6978 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.215, allocations: 90.67 kB / 0.6979 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.754e-05/0.2151, allocations: 32.84 kB / 0.6979 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.2151, allocations: 7.922 kB / 0.6979 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.2153, allocations: 83.41 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.2153, allocations: 0 / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.000364/0.2157, allocations: 137.5 kB / 0.6981 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.2158, allocations: 106.8 kB / 0.6982 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.2161, allocations: 260.2 kB / 0.6985 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.2161, allocations: 29.7 kB / 0.6985 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.2162, allocations: 120 kB / 0.6986 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.2162, allocations: 15.81 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.345e-05/0.2163, allocations: 29.69 kB / 0.6987 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2165, allocations: 330.8 kB / 0.699 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.609e-05/0.2166, allocations: 31.92 kB / 0.699 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.2167, allocations: 76.2 kB / 0.6991 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.2168, allocations: 65.7 kB / 0.6991 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2168, allocations: 0 / 0.6991 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002324/0.2171, allocations: 105.7 kB / 0.6992 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.2171, allocations: 8 kB / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.2171, allocations: 4.031 kB / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.2171, allocations: 0 / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.616e-05/0.2172, allocations: 19.98 kB / 0.6993 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.2172, allocations: 4.062 kB / 0.6993 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/0.2173, allocations: 11.88 kB / 0.6993 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.2173, allocations: 7.984 kB / 0.6993 GB, free: 13.91 MB / 0.4981 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.0001369/0.2175, allocations: 141.8 kB / 0.6994 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.2175, allocations: 15.81 kB / 0.6994 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.354e-05/0.2176, allocations: 17.41 kB / 0.6995 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.2176, allocations: 7.984 kB / 0.6995 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2176, allocations: 0 / 0.6995 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.882e-06/0.2176, allocations: 7.938 kB / 0.6995 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.2178, allocations: 229.5 kB / 0.6997 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2178, allocations: 0 / 0.6997 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.02e-05/0.2179, allocations: 4 kB / 0.6997 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.2179, allocations: 0 / 0.6997 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2179, allocations: 4 kB / 0.6997 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2179, allocations: 0 / 0.6997 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2179, allocations: 3.984 kB / 0.6997 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.2182, allocations: 145 kB / 0.6998 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.465e-05/0.2183, allocations: 97 kB / 0.6999 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/0.2183, allocations: 3.938 kB / 0.6999 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.619e-05/0.2184, allocations: 4 kB / 0.6999 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.672e-05/0.2184, allocations: 7.984 kB / 0.6999 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.2184, allocations: 15.92 kB / 0.7 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001942/0.2186, allocations: 195.3 kB / 0.7002 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2186, allocations: 8 kB / 0.7002 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002486/0.2189, allocations: 31.84 kB / 0.7002 GB, free: 12.89 MB / 0.4981 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.001532/0.2204, allocations: 428.8 kB / 0.7006 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.2207, allocations: 71.89 kB / 0.7007 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2207, allocations: 0 / 0.7007 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.372e-05/0.2208, allocations: 39.92 kB / 0.7007 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.2211, allocations: 40.69 kB / 0.7007 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.2216, allocations: 316.9 kB / 0.701 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.222, allocations: 0.7243 MB / 0.7018 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.695e-05/0.2221, allocations: 21.38 kB / 0.7018 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.2222, allocations: 23.42 kB / 0.7018 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.2222, allocations: 0 / 0.7018 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.005978/0.2282, allocations: 2.454 MB / 0.7042 GB, free: 8.941 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)