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.001306/0.001306, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 197.9 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002421/0.002421, allocations: 283 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.013/1.013, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002741/0.002741, allocations: 107.8 kB / 0.6066 GB, free: 24.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.155, allocations: 89.14 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001817/0.1569, allocations: 0.5744 MB / 0.6942 GB, free: 3.648 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002389/0.1572, allocations: 39.88 kB / 0.6942 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.21e-05/0.1572, allocations: 0 / 0.6942 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.1572, allocations: 3.938 kB / 0.6942 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.465e-05/0.1573, allocations: 6.281 kB / 0.6942 GB, free: 3.602 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.1575, allocations: 11.98 kB / 0.6942 GB, free: 3.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.578e-05/0.1575, allocations: 4 kB / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.235e-05/0.1576, allocations: 11.98 kB / 0.6942 GB, free: 3.574 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.689e-05/0.1576, allocations: 4 kB / 0.6942 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.045e-05/0.1576, allocations: 0.625 kB / 0.6943 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.1576, allocations: 0 / 0.6943 GB, free: 3.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.59e-05/0.1577, allocations: 21.7 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.1578, allocations: 4 kB / 0.6943 GB, free: 3.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.643e-05/0.1578, allocations: 11.86 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.616e-05/0.1579, allocations: 23.92 kB / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1579, allocations: 0 / 0.6943 GB, free: 3.512 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1579, allocations: 4 kB / 0.6943 GB, free: 3.508 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1579, allocations: 0 / 0.6943 GB, free: 3.508 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.000368/0.1583, allocations: 345.6 kB / 0.6946 GB, free: 3.113 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1583, allocations: 8.031 kB / 0.6947 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.176e-05/0.1584, allocations: 42.73 kB / 0.6947 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.1584, allocations: 4.844 kB / 0.6947 GB, free: 3.051 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.1585, allocations: 164.3 kB / 0.6949 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.674e-06/0.1586, allocations: 384 / 0.6949 GB, free: 2.852 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.1586, allocations: 4.375 kB / 0.6949 GB, free: 2.848 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.1587, allocations: 62.25 kB / 0.6949 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1587, allocations: 3.938 kB / 0.6949 GB, free: 2.777 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.1587, allocations: 7.922 kB / 0.6949 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.1588, allocations: 11.97 kB / 0.6949 GB, free: 2.758 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.666e-05/0.1588, allocations: 23.98 kB / 0.695 GB, free: 2.734 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003464/0.1592, allocations: 264.8 kB / 0.6952 GB, free: 2.426 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.25e-05/0.1592, allocations: 14.58 kB / 0.6952 GB, free: 2.402 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.1593, allocations: 16.91 kB / 0.6952 GB, free: 2.383 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-06/0.1593, allocations: 3.938 kB / 0.6952 GB, free: 2.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1593, allocations: 34.5 kB / 0.6953 GB, free: 2.336 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1593, allocations: 0 / 0.6953 GB, free: 2.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001695/0.1595, allocations: 67.41 kB / 0.6953 GB, free: 2.258 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.1595, allocations: 77.11 kB / 0.6954 GB, free: 2.164 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.1596, allocations: 117.8 kB / 0.6955 GB, free: 2.039 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.1597, allocations: 29.83 kB / 0.6956 GB, free: 2.004 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.1597, allocations: 103.8 kB / 0.6957 GB, free: 1.898 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.306e-06/0.1598, allocations: 3.906 kB / 0.6957 GB, free: 1.895 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.126e-05/0.1598, allocations: 25.7 kB / 0.6957 GB, free: 1.863 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1599, allocations: 322.8 kB / 0.696 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.379e-05/0.16, allocations: 7.984 kB / 0.696 GB, free: 1.531 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.594e-05/0.1601, allocations: 66.8 kB / 0.6961 GB, free: 1.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.1602, allocations: 134.1 kB / 0.6962 GB, free: 1.273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1602, allocations: 0 / 0.6962 GB, free: 1.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001544/0.1604, allocations: 115.2 kB / 0.6963 GB, free: 1.148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.1604, allocations: 29.7 kB / 0.6963 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1604, allocations: 4.25 kB / 0.6963 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1604, allocations: 8 kB / 0.6963 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.207e-05/0.1605, allocations: 11.94 kB / 0.6964 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1605, allocations: 7.984 kB / 0.6964 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.021e-05/0.1606, allocations: 15.84 kB / 0.6964 GB, free: 1.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.075e-05/0.1606, allocations: 7.938 kB / 0.6964 GB, free: 1.059 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.0001062/0.1607, allocations: 139.5 kB / 0.6965 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.1608, allocations: 4 kB / 0.6965 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.245e-05/0.1608, allocations: 7.516 kB / 0.6965 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1608, allocations: 4 kB / 0.6965 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1608, allocations: 4 kB / 0.6965 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.1608, allocations: 0 / 0.6965 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.161, allocations: 153.6 kB / 0.6967 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.161, allocations: 0 / 0.6967 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.405e-06/0.161, allocations: 0 / 0.6967 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.161, allocations: 3.938 kB / 0.6967 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-06/0.161, allocations: 0 / 0.6967 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.161, allocations: 4 kB / 0.6967 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.161, allocations: 0 / 0.6967 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.1612, allocations: 177 kB / 0.6969 GB, free: 496 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.1612, allocations: 81.11 kB / 0.6969 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.1612, allocations: 0 / 0.6969 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.835e-05/0.1613, allocations: 8 kB / 0.6969 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.1613, allocations: 0 / 0.6969 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.1613, allocations: 0 / 0.6969 GB, free: 388 kB / 494.1 MB Notification: Performance of sorting global known variables: time 6.484e-05/0.1614, allocations: 91.28 kB / 0.697 GB, free: 296 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1614, allocations: 0 / 0.697 GB, free: 296 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002392/0.1616, allocations: 20.03 kB / 0.6971 GB, free: 276 kB / 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.0006537/0.1623, allocations: 0.7024 MB / 0.6977 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000157/0.1625, allocations: 87.72 kB / 0.6978 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1625, allocations: 4.125 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.1626, allocations: 55.41 kB / 0.6979 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.1628, allocations: 8.75 kB / 0.6979 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004164/0.1633, allocations: 138.6 kB / 0.698 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.1637, allocations: 0.6845 MB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.439e-05/0.1638, allocations: 19.97 kB / 0.6987 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.1638, allocations: 11.44 kB / 0.6987 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1639, allocations: 0 / 0.6987 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.1899, allocations: 1.424 MB / 0.7001 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.566, allocations: 3.75 kB / 0.7001 GB, free: 13.15 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)