Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8345/0.8345, allocations: 143.4 MB / 158.3 MB, free: 5.836 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.001053/0.001052, allocations: 183.6 kB / 191.5 MB, free: 5.785 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.672/1.672, allocations: 223.2 MB / 447.7 MB, free: 4.859 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.0008922/0.0008921, allocations: 96.27 kB / 0.5188 GB, free: 1.207 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001946/0.001945, allocations: 272.9 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004452, allocations: 20.28 kB / 0.6929 GB, free: 59.83 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1853, allocations: 82.79 MB / 0.7737 GB, free: 13.84 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.3426, allocations: 107.9 MB / 0.8791 GB, free: 1.836 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.3429, allocations: 77.97 kB / 0.8791 GB, free: 1.762 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.001487/0.3444, allocations: 0.5437 MB / 0.8797 GB, free: 1.215 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3444, allocations: 0 / 0.8797 GB, free: 1.215 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.3444, allocations: 0 / 0.8797 GB, free: 1.215 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003169/0.3448, allocations: 353.1 kB / 0.88 GB, free: 0.8164 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3448, allocations: 8.031 kB / 0.88 GB, free: 0.8086 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.3449, allocations: 0 / 0.88 GB, free: 0.8086 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.345, allocations: 167.1 kB / 0.8802 GB, free: 0.6055 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.345, allocations: 11.95 kB / 0.8802 GB, free: 0.5938 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.345, allocations: 0 / 0.8802 GB, free: 0.5938 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001539/0.3452, allocations: 49.69 kB / 0.8802 GB, free: 0.5391 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3452, allocations: 0 / 0.8802 GB, free: 0.5391 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3452, allocations: 7.938 kB / 0.8802 GB, free: 0.5312 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.3452, allocations: 8 kB / 0.8802 GB, free: 0.5234 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.044e-05/0.3453, allocations: 23.97 kB / 0.8803 GB, free: 0.5 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003517/0.3457, allocations: 268.7 kB / 0.8805 GB, free: 192 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 3.784e-05/0.3457, allocations: 18.58 kB / 0.8805 GB, free: 164 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.3457, allocations: 4.062 kB / 0.8805 GB, free: 160 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3458, allocations: 34.56 kB / 0.8806 GB, free: 116 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3458, allocations: 3.938 kB / 0.8806 GB, free: 112 kB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001772/0.3459, allocations: 67.3 kB / 0.8806 GB, free: 32 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4337/0.7796, allocations: 77.11 kB / 0.8807 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.7798, allocations: 108 kB / 0.8808 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.7798, allocations: 29.39 kB / 0.8808 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.7799, allocations: 105.6 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-06/0.7799, allocations: 2.688 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-06/0.7799, allocations: 0.9688 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.048e-05/0.78, allocations: 318.4 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.7801, allocations: 9.688 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.527e-05/0.7801, allocations: 61.84 kB / 0.8813 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.189e-05/0.7802, allocations: 50.59 kB / 0.8814 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.7802, allocations: 1.062 kB / 0.8814 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001977/0.7804, allocations: 119.1 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.7805, allocations: 32.14 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.7805, allocations: 4.844 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/0.7805, allocations: 3.375 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.955e-05/0.7806, allocations: 13.47 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.7806, allocations: 10.83 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.435e-05/0.7807, allocations: 8.625 kB / 0.8816 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.7807, allocations: 6.359 kB / 0.8816 GB, free: 108.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 8.83e-05/0.7808, allocations: 146.1 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.7809, allocations: 6.391 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.975e-05/0.7809, allocations: 5.672 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.7809, allocations: 0.8438 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.7809, allocations: 3.219 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.7809, allocations: 3.438 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001407/0.7811, allocations: 153.2 kB / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.7811, allocations: 0.8438 kB / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.7811, allocations: 0 / 0.8819 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.7811, allocations: 8.828 kB / 0.8819 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.7811, allocations: 1.219 kB / 0.8819 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.7811, allocations: 0 / 0.8819 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.7811, allocations: 3.234 kB / 0.8819 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.7812, allocations: 170.9 kB / 0.882 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.708e-05/0.7813, allocations: 81.3 kB / 0.8821 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.7813, allocations: 5.359 kB / 0.8821 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.767e-05/0.7814, allocations: 1.281 kB / 0.8821 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.36e-05/0.7814, allocations: 0.75 kB / 0.8821 GB, free: 108 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.7814, allocations: 2.094 kB / 0.8821 GB, free: 108 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.7814, allocations: 93.7 kB / 0.8822 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.8e-07/0.7815, allocations: 4.031 kB / 0.8822 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002719/0.7817, allocations: 12.94 kB / 0.8822 GB, free: 107.9 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001895/0.7819, allocations: 109.6 kB / 0.8823 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001459/0.7821, allocations: 82.12 kB / 0.8824 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.7821, allocations: 0 / 0.8824 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.794e-05/0.7821, allocations: 64.09 kB / 0.8825 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.7823, allocations: 7.953 kB / 0.8825 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002248/0.7825, allocations: 108.8 kB / 0.8826 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001374/0.7826, allocations: 0.6793 MB / 0.8833 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 5.089e-05/0.7827, allocations: 13.27 kB / 0.8833 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.263e-05/0.7827, allocations: 9.938 kB / 0.8833 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of SimCode: time 3.31e-07/0.7827, allocations: 4 kB / 0.8833 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.002534/0.7853, allocations: 487 kB / 0.8837 GB, free: 106.8 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)