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 0.9216/0.9216, allocations: 143.4 MB / 158.3 MB, free: 5.777 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.001058/0.001058, allocations: 179.8 kB / 191.5 MB, free: 5.773 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.554/1.554, allocations: 223.2 MB / 447.7 MB, free: 4.805 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.0009775/0.0009775, allocations: 84.39 kB / 0.5188 GB, free: 1.172 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001748/0.001748, allocations: 269.1 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004533/0.0004536, allocations: 14.84 kB / 0.6929 GB, free: 59.66 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2054, allocations: 82.8 MB / 0.7737 GB, free: 13.85 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6266/0.8321, allocations: 113.1 MB / 0.8841 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/0.8324, allocations: 82.42 kB / 0.8842 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01645/0.8489, allocations: 5.556 MB / 0.8896 GB, free: 32.31 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.715e-06/0.8489, allocations: 0 / 0.8896 GB, free: 32.31 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.944e-05/0.849, allocations: 2.875 kB / 0.8896 GB, free: 32.31 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.0007811/0.8498, allocations: 495.4 kB / 0.8901 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.8498, allocations: 9.734 kB / 0.8901 GB, free: 31.85 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.203e-05/0.8499, allocations: 20.22 kB / 0.8902 GB, free: 31.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.8503, allocations: 265.3 kB / 0.8904 GB, free: 31.62 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8503, allocations: 7.547 kB / 0.8904 GB, free: 31.62 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.8504, allocations: 6.922 kB / 0.8904 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.8506, allocations: 101.1 kB / 0.8905 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.8506, allocations: 0 / 0.8905 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.8507, allocations: 3.281 kB / 0.8905 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.8507, allocations: 4.656 kB / 0.8905 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.8508, allocations: 36.83 kB / 0.8906 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.8515, allocations: 375.4 kB / 0.8909 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.8517, allocations: 85.14 kB / 0.891 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.8517, allocations: 4.031 kB / 0.891 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001902/0.8519, allocations: 90.31 kB / 0.8911 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.852, allocations: 0 / 0.8911 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.0003921/0.8523, allocations: 221 kB / 0.8913 GB, free: 31.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.8524, allocations: 105.8 kB / 0.8914 GB, free: 30.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.8527, allocations: 244.8 kB / 0.8916 GB, free: 30.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.8527, allocations: 25.7 kB / 0.8917 GB, free: 30.81 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.8528, allocations: 120.3 kB / 0.8918 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.8528, allocations: 26.78 kB / 0.8918 GB, free: 30.71 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.8528, allocations: 0 / 0.8918 GB, free: 30.71 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.72e-05/0.8529, allocations: 332.1 kB / 0.8921 GB, free: 30.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.486e-05/0.853, allocations: 26.22 kB / 0.8921 GB, free: 30.39 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.714e-05/0.8531, allocations: 72.05 kB / 0.8922 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.608e-05/0.8531, allocations: 41.25 kB / 0.8922 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.8532, allocations: 0 / 0.8922 GB, free: 30.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000202/0.8534, allocations: 116.2 kB / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.8534, allocations: 5.344 kB / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.8534, allocations: 0 / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.8534, allocations: 1.438 kB / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.487e-05/0.8535, allocations: 14.11 kB / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.8535, allocations: 1.375 kB / 0.8924 GB, free: 30.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.206e-05/0.8536, allocations: 23.56 kB / 0.8924 GB, free: 30.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.8536, allocations: 2.141 kB / 0.8924 GB, free: 30.29 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 () * 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.0001515/0.8538, allocations: 161.1 kB / 0.8926 GB, free: 30.16 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.8538, allocations: 14.94 kB / 0.8926 GB, free: 30.16 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002751/0.8541, allocations: 133.5 kB / 0.8927 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.8541, allocations: 2.75 kB / 0.8927 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.8541, allocations: 0 / 0.8927 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.8541, allocations: 0 / 0.8927 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.8543, allocations: 246.9 kB / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8543, allocations: 0 / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.8544, allocations: 7.625 kB / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.8544, allocations: 0 / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.8544, allocations: 0 / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.8544, allocations: 2.625 kB / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.8544, allocations: 0 / 0.8929 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.8547, allocations: 154.5 kB / 0.8931 GB, free: 29.83 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.8548, allocations: 101.8 kB / 0.8932 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.8548, allocations: 3.609 kB / 0.8932 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.846e-05/0.8549, allocations: 3.594 kB / 0.8932 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.8549, allocations: 13.17 kB / 0.8932 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.8549, allocations: 5.609 kB / 0.8932 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001759/0.8551, allocations: 191.7 kB / 0.8934 GB, free: 29.65 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8551, allocations: 0 / 0.8934 GB, free: 29.65 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003128/0.8554, allocations: 51.62 kB / 0.8934 GB, free: 29.64 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) * Number of clocked states: 0 () * 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.001129/0.8566, allocations: 454.5 kB / 0.8939 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.8568, allocations: 86.98 kB / 0.894 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.8569, allocations: 0 / 0.894 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.989e-05/0.857, allocations: 41.34 kB / 0.894 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.8572, allocations: 37.31 kB / 0.894 GB, free: 29.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005865/0.8578, allocations: 326.2 kB / 0.8943 GB, free: 29.24 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.858, allocations: 0.7299 MB / 0.8951 GB, free: 28.54 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.446e-05/0.8581, allocations: 27.09 kB / 0.8951 GB, free: 28.53 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.008e-05/0.8582, allocations: 19.45 kB / 0.8951 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of SimCode: time 4.31e-07/0.8582, allocations: 0 / 0.8951 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of Templates: time 0.006672/0.8649, allocations: 2.476 MB / 0.8975 GB, free: 28.3 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)