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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007612/0.0007613, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004654/0.004654, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.316/1.316, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001726/0.001726, allocations: 270.6 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9115/0.9115, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004086, allocations: 19.75 kB / 0.5988 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.176, allocations: 88.55 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.0008142/0.1768, allocations: 309.4 kB / 0.6855 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002898/0.1772, allocations: 36.56 kB / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.778e-05/0.1772, allocations: 4 kB / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.941e-05/0.1772, allocations: 0.875 kB / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.803e-05/0.1773, allocations: 0 / 0.6856 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.1775, allocations: 16.67 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.568e-05/0.1775, allocations: 1.156 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.1776, allocations: 4 kB / 0.6856 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.236e-05/0.1776, allocations: 4 kB / 0.6856 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.118e-05/0.1777, allocations: 14.28 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.1777, allocations: 3.938 kB / 0.6856 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.1778, allocations: 19.98 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.507e-05/0.1778, allocations: 3.938 kB / 0.6856 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.028e-05/0.1779, allocations: 33.64 kB / 0.6857 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.178, allocations: 19.92 kB / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.178, allocations: 0 / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.178, allocations: 2.719 kB / 0.6857 GB, free: 14.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.178, allocations: 0 / 0.6857 GB, free: 14.53 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.0003526/0.1784, allocations: 353.5 kB / 0.686 GB, free: 14.12 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.1784, allocations: 8.031 kB / 0.686 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.304e-05/0.1785, allocations: 30.75 kB / 0.6861 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.1785, allocations: 4.938 kB / 0.6861 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.1787, allocations: 165.9 kB / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1787, allocations: 384 / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.1787, allocations: 384 / 0.6862 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001568/0.1789, allocations: 58.73 kB / 0.6863 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1789, allocations: 11.88 kB / 0.6863 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1789, allocations: 0.6562 kB / 0.6863 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-05/0.179, allocations: 8.531 kB / 0.6863 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.155e-05/0.179, allocations: 23.98 kB / 0.6863 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003891/0.1794, allocations: 262.8 kB / 0.6866 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.089e-05/0.1795, allocations: 22.58 kB / 0.6866 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.247e-05/0.1795, allocations: 9.641 kB / 0.6866 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-06/0.1795, allocations: 0.5 kB / 0.6866 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.1796, allocations: 43.14 kB / 0.6867 GB, free: 13.37 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.1796, allocations: 5.406 kB / 0.6867 GB, free: 13.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000205/0.1798, allocations: 63.31 kB / 0.6867 GB, free: 13.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.1798, allocations: 81.11 kB / 0.6868 GB, free: 13.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.963e-05/0.1799, allocations: 118.5 kB / 0.6869 GB, free: 13.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.18, allocations: 29.17 kB / 0.6869 GB, free: 13.04 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.772e-05/0.18, allocations: 99.8 kB / 0.687 GB, free: 12.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.454e-06/0.18, allocations: 0 / 0.687 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.1801, allocations: 17.72 kB / 0.6871 GB, free: 12.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1802, allocations: 318.8 kB / 0.6874 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.513e-05/0.1802, allocations: 12 kB / 0.6874 GB, free: 12.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.279e-05/0.1803, allocations: 64.45 kB / 0.6874 GB, free: 12.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.1804, allocations: 133.9 kB / 0.6876 GB, free: 12.33 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.1804, allocations: 0 / 0.6876 GB, free: 12.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001559/0.1806, allocations: 119.1 kB / 0.6877 GB, free: 12.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.899e-05/0.1807, allocations: 37.69 kB / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1807, allocations: 0 / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1807, allocations: 4 kB / 0.6877 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.632e-05/0.1808, allocations: 19.88 kB / 0.6877 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1808, allocations: 4.25 kB / 0.6877 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.438e-05/0.1809, allocations: 7.938 kB / 0.6877 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.1809, allocations: 15.94 kB / 0.6878 GB, free: 12.11 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.915e-05/0.181, allocations: 140.8 kB / 0.6879 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.181, allocations: 3.906 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.357e-05/0.181, allocations: 7.531 kB / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.1811, allocations: 0 / 0.6879 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1811, allocations: 3.984 kB / 0.6879 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1811, allocations: 0 / 0.6879 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.1812, allocations: 161.6 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1812, allocations: 4 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.164e-06/0.1812, allocations: 3.938 kB / 0.6881 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1813, allocations: 4 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.1813, allocations: 0 / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.1813, allocations: 3.984 kB / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1813, allocations: 0 / 0.6881 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/0.1814, allocations: 161.2 kB / 0.6882 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.794e-05/0.1815, allocations: 85.12 kB / 0.6883 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.1815, allocations: 7.938 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.478e-05/0.1816, allocations: 0 / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.1816, allocations: 0 / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-06/0.1816, allocations: 4 kB / 0.6883 GB, free: 11.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.927e-05/0.1816, allocations: 95.2 kB / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1817, allocations: 0 / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002454/0.1819, allocations: 8 kB / 0.6884 GB, free: 11.32 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.0004876/0.1824, allocations: 0.7101 MB / 0.6891 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001505/0.1826, allocations: 83.33 kB / 0.6892 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1826, allocations: 0 / 0.6892 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.166e-05/0.1826, allocations: 55.94 kB / 0.6892 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.1828, allocations: 16.69 kB / 0.6893 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.1832, allocations: 148.3 kB / 0.6894 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.1835, allocations: 0.677 MB / 0.6901 GB, free: 9.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.768e-05/0.1836, allocations: 11.98 kB / 0.6901 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.1836, allocations: 15.42 kB / 0.6901 GB, free: 9.492 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1836, allocations: 4 kB / 0.6901 GB, free: 9.488 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01259/0.1962, allocations: 1.238 MB / 0.6913 GB, free: 8.438 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.1965, allocations: 235.8 kB / 0.6915 GB, free: 8.176 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/1.764, allocations: 2.25 kB / 0.6915 GB, free: 8.176 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)