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.001326/0.001326, allocations: 105 kB / 16.27 MB, free: 5.977 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.001152/0.001153, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.27/1.27, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002176/0.002175, allocations: 287.4 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9004/0.9004, allocations: 169.3 MB / 0.4988 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 102.6 kB / 0.5959 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1566, allocations: 86.97 MB / 0.6808 GB, free: 8.16 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001876/0.1586, allocations: 0.58 MB / 0.6814 GB, free: 7.574 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002328/0.1588, allocations: 39.94 kB / 0.6815 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.082e-05/0.1588, allocations: 0 / 0.6815 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.341e-05/0.1589, allocations: 3.938 kB / 0.6815 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.154e-05/0.1589, allocations: 0 / 0.6815 GB, free: 7.531 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.1592, allocations: 15.98 kB / 0.6815 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.827e-05/0.1592, allocations: 0 / 0.6815 GB, free: 7.516 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.573e-05/0.1593, allocations: 11.98 kB / 0.6815 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.884e-05/0.1593, allocations: 0 / 0.6815 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.942e-05/0.1593, allocations: 0 / 0.6815 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.1593, allocations: 0 / 0.6815 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.768e-05/0.1594, allocations: 19.98 kB / 0.6815 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.04e-05/0.1595, allocations: 7.984 kB / 0.6815 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.1595, allocations: 7.938 kB / 0.6815 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.181e-05/0.1596, allocations: 27.86 kB / 0.6815 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1596, allocations: 0 / 0.6815 GB, free: 7.441 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1596, allocations: 0 / 0.6815 GB, free: 7.441 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1596, allocations: 0 / 0.6815 GB, free: 7.441 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.0003179/0.16, allocations: 349.6 kB / 0.6819 GB, free: 7.043 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.16, allocations: 12.03 kB / 0.6819 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.16, allocations: 0.9375 kB / 0.6819 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.519e-05/0.1601, allocations: 172.3 kB / 0.6821 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.1601, allocations: 384 / 0.6821 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-06/0.1602, allocations: 4.375 kB / 0.6821 GB, free: 6.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.1603, allocations: 54.25 kB / 0.6821 GB, free: 6.762 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1603, allocations: 192 / 0.6821 GB, free: 6.762 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1603, allocations: 7.922 kB / 0.6821 GB, free: 6.754 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.1604, allocations: 8 kB / 0.6821 GB, free: 6.746 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.818e-05/0.1604, allocations: 27.92 kB / 0.6822 GB, free: 6.719 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003165/0.1607, allocations: 268.8 kB / 0.6824 GB, free: 6.406 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.077e-05/0.1608, allocations: 14.58 kB / 0.6824 GB, free: 6.383 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.945e-05/0.1608, allocations: 8.922 kB / 0.6824 GB, free: 6.371 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.1608, allocations: 3.984 kB / 0.6824 GB, free: 6.367 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.1609, allocations: 42.48 kB / 0.6825 GB, free: 6.316 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1609, allocations: 0 / 0.6825 GB, free: 6.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001578/0.161, allocations: 67.34 kB / 0.6825 GB, free: 6.238 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.1611, allocations: 81.23 kB / 0.6826 GB, free: 6.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.1612, allocations: 125.7 kB / 0.6827 GB, free: 6.008 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.1612, allocations: 25.7 kB / 0.6828 GB, free: 5.977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.516e-05/0.1612, allocations: 99.8 kB / 0.6829 GB, free: 5.875 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.1613, allocations: 3.938 kB / 0.6829 GB, free: 5.871 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.1613, allocations: 25.7 kB / 0.6829 GB, free: 5.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1614, allocations: 322.8 kB / 0.6832 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.09e-05/0.1614, allocations: 4 kB / 0.6832 GB, free: 5.512 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.084e-05/0.1615, allocations: 66.8 kB / 0.6833 GB, free: 5.422 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.1616, allocations: 126.2 kB / 0.6834 GB, free: 5.262 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1616, allocations: 4 kB / 0.6834 GB, free: 5.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001506/0.1618, allocations: 127.3 kB / 0.6835 GB, free: 5.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.1618, allocations: 33.7 kB / 0.6835 GB, free: 5.082 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1618, allocations: 4 kB / 0.6835 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1618, allocations: 0 / 0.6835 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.308e-05/0.1619, allocations: 12 kB / 0.6836 GB, free: 5.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.1619, allocations: 7.938 kB / 0.6836 GB, free: 5.059 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.362e-05/0.162, allocations: 7.938 kB / 0.6836 GB, free: 5.051 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.162, allocations: 4 kB / 0.6836 GB, free: 5.047 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 9.059e-05/0.1621, allocations: 151.5 kB / 0.6837 GB, free: 4.883 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1621, allocations: 7.969 kB / 0.6837 GB, free: 4.875 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.344e-05/0.1621, allocations: 3.531 kB / 0.6837 GB, free: 4.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1622, allocations: 4 kB / 0.6837 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1622, allocations: 0 / 0.6837 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1622, allocations: 0 / 0.6837 GB, free: 4.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.1623, allocations: 157.6 kB / 0.6839 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1623, allocations: 0 / 0.6839 GB, free: 4.664 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-06/0.1623, allocations: 4 kB / 0.6839 GB, free: 4.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1623, allocations: 3.984 kB / 0.6839 GB, free: 4.656 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.1624, allocations: 0 / 0.6839 GB, free: 4.656 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1624, allocations: 4 kB / 0.6839 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.1624, allocations: 7.938 kB / 0.6839 GB, free: 4.645 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.1625, allocations: 161.2 kB / 0.6841 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.85e-05/0.1625, allocations: 85.03 kB / 0.6841 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.1626, allocations: 0 / 0.6841 GB, free: 4.363 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.618e-05/0.1626, allocations: 4 kB / 0.6841 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.889e-06/0.1626, allocations: 0 / 0.6841 GB, free: 4.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.1626, allocations: 0 / 0.6841 GB, free: 4.359 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.315e-05/0.1627, allocations: 99.36 kB / 0.6842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1627, allocations: 0 / 0.6842 GB, free: 4.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.1629, allocations: 15.94 kB / 0.6842 GB, free: 4.246 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.0001818/0.1631, allocations: 103.2 kB / 0.6843 GB, free: 4.137 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.1632, allocations: 87.27 kB / 0.6844 GB, free: 4.039 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1633, allocations: 0.5 kB / 0.6844 GB, free: 4.039 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.211e-05/0.1633, allocations: 63.39 kB / 0.6845 GB, free: 3.965 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001938/0.1635, allocations: 7.938 kB / 0.6845 GB, free: 3.957 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002286/0.1637, allocations: 130.7 kB / 0.6846 GB, free: 3.797 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.164, allocations: 0.6768 MB / 0.6853 GB, free: 3.094 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.411e-05/0.164, allocations: 11.44 kB / 0.6853 GB, free: 3.082 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.164, allocations: 0 / 0.6853 GB, free: 3.082 MB / 494.1 MB Notification: Performance of Templates: time 0.002106/0.1661, allocations: 0.6819 MB / 0.686 GB, free: 2.406 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)