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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0018/0.0018, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.411/1.411, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002567/0.002567, allocations: 298.5 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.08/1.08, allocations: 178.6 MB / 0.5069 GB, free: 4.742 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 105.4 kB / 0.6059 GB, free: 24.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1707, allocations: 89.15 MB / 0.693 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001818/0.1725, allocations: 0.6489 MB / 0.6936 GB, free: 4.047 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002129/0.1728, allocations: 35.89 kB / 0.6937 GB, free: 4.012 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.58e-05/0.1728, allocations: 0 / 0.6937 GB, free: 4.012 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.838e-05/0.1728, allocations: 0 / 0.6937 GB, free: 4.012 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.196e-05/0.1729, allocations: 3.938 kB / 0.6937 GB, free: 4.008 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.1731, allocations: 19.91 kB / 0.6937 GB, free: 3.988 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.042e-05/0.1731, allocations: 4 kB / 0.6937 GB, free: 3.984 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.1732, allocations: 4 kB / 0.6937 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.579e-05/0.1732, allocations: 0.625 kB / 0.6937 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.94e-05/0.1732, allocations: 0 / 0.6937 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.1733, allocations: 4 kB / 0.6937 GB, free: 3.977 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.597e-05/0.1733, allocations: 23.97 kB / 0.6937 GB, free: 3.953 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.717e-05/0.1734, allocations: 4 kB / 0.6937 GB, free: 3.949 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.502e-05/0.1734, allocations: 11.88 kB / 0.6937 GB, free: 3.938 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.495e-05/0.1735, allocations: 27.91 kB / 0.6938 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1735, allocations: 0 / 0.6938 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1735, allocations: 0 / 0.6938 GB, free: 3.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1735, allocations: 0 / 0.6938 GB, free: 3.91 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003646/0.1739, allocations: 349.3 kB / 0.6941 GB, free: 3.512 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1739, allocations: 12.03 kB / 0.6941 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.174, allocations: 8.844 kB / 0.6941 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.1741, allocations: 164.6 kB / 0.6943 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.1741, allocations: 384 / 0.6943 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.1741, allocations: 8.359 kB / 0.6943 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.1743, allocations: 58.19 kB / 0.6943 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.1743, allocations: 192 / 0.6943 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1743, allocations: 3.938 kB / 0.6943 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.1743, allocations: 4 kB / 0.6943 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.821e-05/0.1744, allocations: 23.98 kB / 0.6944 GB, free: 3.191 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003435/0.1748, allocations: 272.8 kB / 0.6946 GB, free: 2.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.832e-05/0.1748, allocations: 22.52 kB / 0.6946 GB, free: 2.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.801e-05/0.1748, allocations: 8.922 kB / 0.6947 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-06/0.1748, allocations: 0 / 0.6947 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1749, allocations: 30.56 kB / 0.6947 GB, free: 2.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1749, allocations: 3.938 kB / 0.6947 GB, free: 2.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.1751, allocations: 79.3 kB / 0.6948 GB, free: 2.699 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.1751, allocations: 77.11 kB / 0.6948 GB, free: 2.605 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.472e-05/0.1752, allocations: 109.8 kB / 0.6949 GB, free: 2.488 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1753, allocations: 25.7 kB / 0.695 GB, free: 2.457 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.487e-05/0.1753, allocations: 111.7 kB / 0.6951 GB, free: 2.344 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.035e-06/0.1753, allocations: 3.906 kB / 0.6951 GB, free: 2.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.1754, allocations: 21.72 kB / 0.6951 GB, free: 2.312 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1755, allocations: 326.9 kB / 0.6954 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.137e-05/0.1756, allocations: 8 kB / 0.6954 GB, free: 1.977 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.455e-05/0.1756, allocations: 58.86 kB / 0.6955 GB, free: 1.895 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.1758, allocations: 134.1 kB / 0.6956 GB, free: 1.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.1758, allocations: 4 kB / 0.6956 GB, free: 1.723 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001522/0.1759, allocations: 115.2 kB / 0.6957 GB, free: 1.598 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.176, allocations: 29.7 kB / 0.6957 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.176, allocations: 4 kB / 0.6957 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.176, allocations: 7.969 kB / 0.6958 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.523e-05/0.1761, allocations: 15.94 kB / 0.6958 GB, free: 1.535 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1761, allocations: 4 kB / 0.6958 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.745e-05/0.1762, allocations: 15.84 kB / 0.6958 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.1762, allocations: 4 kB / 0.6958 GB, free: 1.512 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.1763, allocations: 155.6 kB / 0.6959 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.1764, allocations: 4 kB / 0.6959 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.226e-05/0.1764, allocations: 7.531 kB / 0.696 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1764, allocations: 0 / 0.696 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1764, allocations: 4 kB / 0.696 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.1764, allocations: 0 / 0.696 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.1766, allocations: 153.6 kB / 0.6961 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1766, allocations: 0 / 0.6961 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1766, allocations: 0 / 0.6961 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1766, allocations: 0 / 0.6961 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.1766, allocations: 4 kB / 0.6961 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1766, allocations: 0 / 0.6961 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1766, allocations: 4 kB / 0.6961 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.1768, allocations: 165.2 kB / 0.6963 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.1768, allocations: 81.02 kB / 0.6963 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.1768, allocations: 7.922 kB / 0.6964 GB, free: 0.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.713e-05/0.1769, allocations: 4 kB / 0.6964 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.437e-05/0.1769, allocations: 8.031 kB / 0.6964 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.1769, allocations: 0 / 0.6964 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.597e-05/0.177, allocations: 91.2 kB / 0.6964 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.177, allocations: 0 / 0.6964 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002508/0.1773, allocations: 19.94 kB / 0.6965 GB, free: 0.7109 MB / 494.1 MB 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 (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.0001639/0.1774, allocations: 99.25 kB / 0.6966 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.1776, allocations: 87.77 kB / 0.6966 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1776, allocations: 4.062 kB / 0.6967 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.851e-05/0.1776, allocations: 55.41 kB / 0.6967 GB, free: 448 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.1778, allocations: 0 / 0.6967 GB, free: 448 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002251/0.1781, allocations: 113 kB / 0.6968 GB, free: 308 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.1784, allocations: 0.6768 MB / 0.6975 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.329e-05/0.1785, allocations: 16.05 kB / 0.6975 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.1785, allocations: 7.438 kB / 0.6975 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.1785, allocations: 4 kB / 0.6975 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.00288/0.1814, allocations: 0.528 MB / 0.698 GB, free: 15.06 MB / 0.4981 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)