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.00133/0.00133, 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.001566/0.001566, allocations: 193.3 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.326/1.326, 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.002017/0.002017, allocations: 286.2 kB / 290.4 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9626/0.9626, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 91.27 kB / 0.5947 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1687, allocations: 86.99 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001803/0.1705, allocations: 0.6311 MB / 0.6803 GB, free: 444 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002378/0.1708, allocations: 39.88 kB / 0.6803 GB, free: 404 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.68e-05/0.1708, allocations: 0 / 0.6803 GB, free: 404 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 2.864e-05/0.1708, allocations: 0 / 0.6803 GB, free: 404 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.658e-05/0.1709, allocations: 3.938 kB / 0.6803 GB, free: 400 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.1711, allocations: 15.92 kB / 0.6803 GB, free: 384 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.444e-05/0.1712, allocations: 7.984 kB / 0.6803 GB, free: 376 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.13e-05/0.1712, allocations: 0 / 0.6803 GB, free: 376 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.148e-05/0.1712, allocations: 8 kB / 0.6803 GB, free: 368 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.111e-05/0.1713, allocations: 0 / 0.6803 GB, free: 368 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.1713, allocations: 0 / 0.6803 GB, free: 368 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.485e-05/0.1714, allocations: 19.98 kB / 0.6803 GB, free: 348 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.221e-05/0.1714, allocations: 4 kB / 0.6804 GB, free: 344 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.12e-05/0.1714, allocations: 3.938 kB / 0.6804 GB, free: 340 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 8.73e-05/0.1715, allocations: 35.89 kB / 0.6804 GB, free: 304 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1715, allocations: 0 / 0.6804 GB, free: 304 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1716, allocations: 3.938 kB / 0.6804 GB, free: 300 kB / 478.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1716, allocations: 0 / 0.6804 GB, free: 300 kB / 478.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.0003366/0.1719, allocations: 353.6 kB / 0.6807 GB, free: 15.89 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1719, allocations: 12.03 kB / 0.6807 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.172, allocations: 0.9375 kB / 0.6807 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.426e-05/0.1721, allocations: 164.3 kB / 0.6809 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1721, allocations: 4.312 kB / 0.6809 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.1721, allocations: 8.359 kB / 0.6809 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.1722, allocations: 54.25 kB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1722, allocations: 192 / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.1723, allocations: 3.938 kB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.1723, allocations: 7.984 kB / 0.681 GB, free: 15.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.479e-05/0.1723, allocations: 31.98 kB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003147/0.1727, allocations: 268.8 kB / 0.6813 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.1727, allocations: 26.5 kB / 0.6813 GB, free: 15.22 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.1727, allocations: 8.922 kB / 0.6813 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.233e-06/0.1728, allocations: 0 / 0.6813 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.1728, allocations: 30.56 kB / 0.6813 GB, free: 15.17 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 3.317e-06/0.1728, allocations: 4 kB / 0.6813 GB, free: 15.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000158/0.1729, allocations: 71.34 kB / 0.6814 GB, free: 15.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.173, allocations: 85.03 kB / 0.6815 GB, free: 14.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.867e-05/0.1731, allocations: 113.8 kB / 0.6816 GB, free: 14.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.1731, allocations: 25.7 kB / 0.6816 GB, free: 14.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1732, allocations: 103.8 kB / 0.6817 GB, free: 14.72 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.1732, allocations: 3.984 kB / 0.6817 GB, free: 14.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.1732, allocations: 25.75 kB / 0.6817 GB, free: 14.69 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.4e-05/0.1733, allocations: 322.8 kB / 0.682 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.166e-05/0.1733, allocations: 11.98 kB / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.221e-05/0.1734, allocations: 58.86 kB / 0.6821 GB, free: 14.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.058e-05/0.1735, allocations: 130.1 kB / 0.6822 GB, free: 14.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1735, allocations: 4 kB / 0.6822 GB, free: 14.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001325/0.1736, allocations: 119.2 kB / 0.6824 GB, free: 13.97 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.1737, allocations: 29.7 kB / 0.6824 GB, free: 13.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1737, allocations: 4 kB / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1737, allocations: 0 / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.361e-05/0.1738, allocations: 15.98 kB / 0.6824 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1738, allocations: 4.469 kB / 0.6824 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.041e-05/0.1739, allocations: 11.94 kB / 0.6824 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1739, allocations: 8.25 kB / 0.6824 GB, free: 13.89 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 8.785e-05/0.174, allocations: 144.7 kB / 0.6826 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.174, allocations: 7.906 kB / 0.6826 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.174, allocations: 11.52 kB / 0.6826 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.174, allocations: 3.938 kB / 0.6826 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.174, allocations: 4 kB / 0.6826 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.174, allocations: 0 / 0.6826 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.1742, allocations: 153.6 kB / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1742, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1742, allocations: 4 kB / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.1742, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.1742, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.1742, allocations: 0 / 0.6827 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1742, allocations: 4 kB / 0.6827 GB, free: 13.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.1743, allocations: 165.2 kB / 0.6829 GB, free: 13.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.092e-05/0.1744, allocations: 77.11 kB / 0.683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.1744, allocations: 4 kB / 0.683 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.145e-05/0.1744, allocations: 11.91 kB / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.297e-05/0.1745, allocations: 4 kB / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.1745, allocations: 4 kB / 0.683 GB, free: 13.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.772e-05/0.1745, allocations: 91.25 kB / 0.6831 GB, free: 13.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1745, allocations: 0 / 0.6831 GB, free: 13.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002388/0.1748, allocations: 15.94 kB / 0.6831 GB, free: 13.1 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.0001444/0.1749, allocations: 107.2 kB / 0.6832 GB, free: 12.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001398/0.1751, allocations: 91.33 kB / 0.6833 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1751, allocations: 0 / 0.6833 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.859e-05/0.1751, allocations: 55.41 kB / 0.6833 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.1753, allocations: 1.125 kB / 0.6833 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001968/0.1755, allocations: 117 kB / 0.6835 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.1757, allocations: 0.6812 MB / 0.6841 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.98e-05/0.1758, allocations: 15.98 kB / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.06e-05/0.1758, allocations: 7.438 kB / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1758, allocations: 0 / 0.6841 GB, free: 11.95 MB / 494.1 MB Notification: Performance of Templates: time 0.00253/0.1784, allocations: 0.5241 MB / 0.6847 GB, free: 11.44 MB / 494.1 MB 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)