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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 1.02/1.02, allocations: 141.8 MB / 149.3 MB, free: 9.207 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 176.2 kB / 182.2 MB, free: 9.445 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 221.5 MB / 436.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009171/0.0009173, allocations: 92.11 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001797/0.001797, allocations: 269.5 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.769e-05/1.782e-05, allocations: 4 kB / 0.6765 GB, free: 12.81 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.3638, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.4946, allocations: 112.3 MB / 0.8671 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.4949, allocations: 79.83 kB / 0.8672 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01548/0.5104, allocations: 5.494 MB / 0.8725 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5104, allocations: 11.94 kB / 0.8725 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.492e-05/0.5104, allocations: 4 kB / 0.8725 GB, free: 9.938 MB / 0.5417 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.0005476/0.511, allocations: 459.7 kB / 0.873 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.511, allocations: 8.031 kB / 0.873 GB, free: 9.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.5111, allocations: 15.81 kB / 0.873 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.5115, allocations: 267.5 kB / 0.8733 GB, free: 9.109 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.5115, allocations: 11.98 kB / 0.8733 GB, free: 9.098 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.5116, allocations: 4 kB / 0.8733 GB, free: 9.094 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001027/0.5117, allocations: 35.94 kB / 0.8733 GB, free: 9.059 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.5118, allocations: 88.23 kB / 0.8734 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.5119, allocations: 0 / 0.8734 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.5119, allocations: 0 / 0.8734 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.5119, allocations: 0 / 0.8734 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.5124, allocations: 357.1 kB / 0.8737 GB, free: 8.57 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.5126, allocations: 74.67 kB / 0.8738 GB, free: 8.488 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.983e-05/0.5126, allocations: 28.92 kB / 0.8738 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.5127, allocations: 4 kB / 0.8738 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.5128, allocations: 79.41 kB / 0.8739 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 3.496e-06/0.5128, allocations: 4 kB / 0.8739 GB, free: 8.359 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0002933/0.5131, allocations: 109.5 kB / 0.874 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/0.5132, allocations: 102.8 kB / 0.8741 GB, free: 8.121 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.5135, allocations: 231 kB / 0.8743 GB, free: 7.891 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.5135, allocations: 29.7 kB / 0.8744 GB, free: 7.855 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.241e-05/0.5136, allocations: 116.1 kB / 0.8745 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.5136, allocations: 27.64 kB / 0.8745 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.5136, allocations: 0 / 0.8745 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5137, allocations: 326.8 kB / 0.8748 GB, free: 7.383 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.091e-05/0.5138, allocations: 27.98 kB / 0.8748 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.706e-05/0.5138, allocations: 68.28 kB / 0.8749 GB, free: 7.273 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.984e-05/0.5139, allocations: 31.92 kB / 0.8749 GB, free: 7.242 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.5139, allocations: 4 kB / 0.8749 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001811/0.5141, allocations: 109.1 kB / 0.875 GB, free: 7.129 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.5142, allocations: 4.219 kB / 0.875 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.5142, allocations: 4 kB / 0.8751 GB, free: 7.121 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.014e-05/0.5142, allocations: 7.938 kB / 0.8751 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.5143, allocations: 15.92 kB / 0.8751 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.5143, allocations: 4 kB / 0.8751 GB, free: 7.094 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.756e-05/0.5144, allocations: 3.938 kB / 0.8751 GB, free: 7.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.5144, allocations: 7.984 kB / 0.8751 GB, free: 7.082 MB / 0.5417 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.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete 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 7.672e-05/0.5145, allocations: 112.9 kB / 0.8752 GB, free: 6.965 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.5145, allocations: 15.81 kB / 0.8752 GB, free: 6.949 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.5148, allocations: 127.5 kB / 0.8753 GB, free: 6.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5148, allocations: 3.984 kB / 0.8753 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5148, allocations: 0 / 0.8753 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.5148, allocations: 0 / 0.8753 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.515, allocations: 210.1 kB / 0.8755 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.515, allocations: 0 / 0.8755 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.566e-05/0.5151, allocations: 4 kB / 0.8755 GB, free: 6.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.5151, allocations: 0 / 0.8755 GB, free: 6.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.5151, allocations: 4 kB / 0.8755 GB, free: 6.566 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.5151, allocations: 0 / 0.8755 GB, free: 6.566 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5151, allocations: 8 kB / 0.8756 GB, free: 6.559 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.5154, allocations: 152.7 kB / 0.8757 GB, free: 6.391 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.141e-05/0.5154, allocations: 104.9 kB / 0.8758 GB, free: 6.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/0.5155, allocations: 4 kB / 0.8758 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.954e-05/0.5155, allocations: 0 / 0.8758 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.5156, allocations: 11.98 kB / 0.8758 GB, free: 6.254 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.5156, allocations: 7.984 kB / 0.8758 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001634/0.5158, allocations: 191.4 kB / 0.876 GB, free: 6.059 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5158, allocations: 4 kB / 0.876 GB, free: 6.055 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002505/0.516, allocations: 35.94 kB / 0.876 GB, free: 6.02 MB / 0.5417 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0007708/0.5168, allocations: 376.3 kB / 0.8764 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001745/0.517, allocations: 75.97 kB / 0.8765 GB, free: 5.66 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.517, allocations: 4 kB / 0.8765 GB, free: 5.656 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.707e-05/0.5171, allocations: 35.92 kB / 0.8765 GB, free: 5.621 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.5173, allocations: 36.64 kB / 0.8765 GB, free: 5.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003894/0.5177, allocations: 213.1 kB / 0.8768 GB, free: 5.359 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.518, allocations: 0.7289 MB / 0.8775 GB, free: 4.605 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.847e-05/0.5181, allocations: 31.83 kB / 0.8775 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.5182, allocations: 15.44 kB / 0.8775 GB, free: 4.562 MB / 0.5417 GB Notification: Performance of SimCode: time 2.7e-07/0.5182, allocations: 3.938 kB / 0.8775 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of Templates: time 0.005236/0.5234, allocations: 2.357 MB / 0.8798 GB, free: 2.219 MB / 0.5417 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)