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.001046/0.001046, 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.001078/0.001078, allocations: 197 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.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002192/0.002192, allocations: 275 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9086/0.9086, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 100.5 kB / 0.5954 GB, free: 27.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1557, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001624/0.1574, allocations: 0.566 MB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002181/0.1576, allocations: 31.88 kB / 0.6809 GB, free: 15.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.942e-05/0.1576, allocations: 4 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.228e-05/0.1577, allocations: 3.938 kB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.124e-05/0.1577, allocations: 0 / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1579, allocations: 16.7 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.233e-05/0.158, allocations: 8 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.763e-05/0.158, allocations: 9.484 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.712e-05/0.158, allocations: 4 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.945e-05/0.158, allocations: 3.984 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.154e-05/0.1581, allocations: 0 / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.942e-05/0.1582, allocations: 23.97 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.1582, allocations: 4.656 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.292e-05/0.1582, allocations: 12.56 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.983e-05/0.1583, allocations: 15.92 kB / 0.681 GB, free: 15.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1583, allocations: 4.875 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.1583, allocations: 0 / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1583, allocations: 0 / 0.681 GB, free: 15.88 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.0003055/0.1586, allocations: 355.6 kB / 0.6813 GB, free: 15.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.1587, allocations: 8.031 kB / 0.6813 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.581e-05/0.1587, allocations: 38.75 kB / 0.6814 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.243e-05/0.1587, allocations: 0.9375 kB / 0.6814 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.682e-05/0.1588, allocations: 172.3 kB / 0.6815 GB, free: 15.22 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.1589, allocations: 4.375 kB / 0.6815 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.1589, allocations: 4.375 kB / 0.6815 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.159, allocations: 58.23 kB / 0.6816 GB, free: 15.15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.159, allocations: 3.938 kB / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.159, allocations: 0 / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.159, allocations: 4 kB / 0.6816 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.446e-05/0.1591, allocations: 23.98 kB / 0.6816 GB, free: 15.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002874/0.1594, allocations: 272.7 kB / 0.6819 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.732e-05/0.1594, allocations: 18.58 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.85e-05/0.1595, allocations: 8.922 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-06/0.1595, allocations: 3.938 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1595, allocations: 34.55 kB / 0.682 GB, free: 14.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1595, allocations: 0 / 0.682 GB, free: 14.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000152/0.1597, allocations: 71.38 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1597, allocations: 85.11 kB / 0.6821 GB, free: 14.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.493e-05/0.1598, allocations: 117.8 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.1598, allocations: 25.7 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.257e-05/0.1599, allocations: 103.8 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.961e-06/0.1599, allocations: 0 / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.1599, allocations: 29.61 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.524e-05/0.16, allocations: 314.8 kB / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.544e-05/0.1601, allocations: 15.98 kB / 0.6827 GB, free: 13.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.934e-05/0.1601, allocations: 62.94 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.866e-05/0.1602, allocations: 130.1 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1602, allocations: 4 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001385/0.1604, allocations: 123.3 kB / 0.683 GB, free: 13.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.1604, allocations: 29.7 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1604, allocations: 4 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1604, allocations: 0 / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.116e-05/0.1605, allocations: 12 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1605, allocations: 4 kB / 0.683 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.1606, allocations: 11.84 kB / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.1606, allocations: 15.86 kB / 0.6831 GB, free: 13.43 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.813e-05/0.1607, allocations: 144.9 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.1607, allocations: 8 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.718e-06/0.1607, allocations: 3.531 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1608, allocations: 0 / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1608, allocations: 4 kB / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1608, allocations: 0 / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001421/0.1609, allocations: 157.6 kB / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1609, allocations: 0 / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.1609, allocations: 0 / 0.6834 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1609, allocations: 3.984 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.1609, allocations: 0 / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.161, allocations: 8 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.161, allocations: 4 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.1611, allocations: 169.1 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.325e-05/0.1611, allocations: 85 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.1611, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.147e-05/0.1612, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.1612, allocations: 4 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.1612, allocations: 4.031 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.349e-05/0.1613, allocations: 95.2 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1613, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002383/0.1615, allocations: 8 kB / 0.6837 GB, free: 12.64 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.0003956/0.1619, allocations: 0.7025 MB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001314/0.1621, allocations: 91.3 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1621, allocations: 0 / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.246e-05/0.1621, allocations: 59.39 kB / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.1623, allocations: 0.75 kB / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000366/0.1627, allocations: 139.2 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.1629, allocations: 0.6846 MB / 0.6854 GB, free: 10.85 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.095e-05/0.163, allocations: 11.97 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.415e-05/0.163, allocations: 15.44 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of SimCode: time 3.6e-07/0.163, allocations: 0 / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.1798, allocations: 1.42 MB / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.913/7.093, allocations: 14.98 kB / 0.6868 GB, free: 9.523 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 & 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)