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.007971/0.007971, allocations: 99.66 kB / 15.73 MB, free: 5.551 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.001763/0.001763, allocations: 196.7 kB / 16.68 MB, free: 5.48 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 4.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.002407/0.002407, allocations: 279 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.01/1.01, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00267/0.00267, allocations: 99.92 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1754, allocations: 86.97 MB / 0.7659 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001896/0.1773, allocations: 0.5916 MB / 0.7665 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002483/0.1776, allocations: 35.88 kB / 0.7666 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.754e-05/0.1776, allocations: 0 / 0.7666 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.579e-05/0.1776, allocations: 0 / 0.7666 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.663e-05/0.1777, allocations: 0 / 0.7666 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.1779, allocations: 27.92 kB / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.163e-05/0.178, allocations: 3.938 kB / 0.7666 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.082e-05/0.178, allocations: 4 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.79e-05/0.178, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.285e-05/0.1781, allocations: 3.984 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.1781, allocations: 0 / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.056e-05/0.1782, allocations: 23.98 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.897e-05/0.1782, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.014e-05/0.1783, allocations: 11.92 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.1784, allocations: 24.14 kB / 0.7667 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1784, allocations: 0 / 0.7667 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1784, allocations: 4 kB / 0.7667 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.1784, allocations: 0 / 0.7667 GB, free: 8.164 MB / 0.5606 GB 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.0004096/0.1788, allocations: 349.2 kB / 0.767 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1789, allocations: 12.03 kB / 0.767 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.093e-05/0.1789, allocations: 34.73 kB / 0.767 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.179, allocations: 4.891 kB / 0.767 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.1791, allocations: 168.3 kB / 0.7672 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1791, allocations: 384 / 0.7672 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-06/0.1791, allocations: 4.312 kB / 0.7672 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.1793, allocations: 58.25 kB / 0.7673 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1793, allocations: 3.938 kB / 0.7673 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.1793, allocations: 0 / 0.7673 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.024e-05/0.1794, allocations: 11.98 kB / 0.7673 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.412e-05/0.1794, allocations: 23.98 kB / 0.7673 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.1798, allocations: 268.8 kB / 0.7676 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.983e-05/0.1799, allocations: 22.52 kB / 0.7676 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.916e-05/0.1799, allocations: 12.84 kB / 0.7676 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.1799, allocations: 0 / 0.7676 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.1799, allocations: 38.62 kB / 0.7676 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.18, allocations: 0 / 0.7676 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001897/0.1801, allocations: 59.41 kB / 0.7677 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.475e-05/0.1802, allocations: 81.05 kB / 0.7678 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1803, allocations: 129.8 kB / 0.7679 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.1804, allocations: 29.83 kB / 0.7679 GB, free: 6.652 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.1805, allocations: 99.89 kB / 0.768 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.1805, allocations: 4 kB / 0.768 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.1805, allocations: 29.66 kB / 0.768 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1807, allocations: 318.8 kB / 0.7683 GB, free: 6.191 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.118e-05/0.1807, allocations: 11.98 kB / 0.7684 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.954e-05/0.1808, allocations: 58.86 kB / 0.7684 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.181, allocations: 134.1 kB / 0.7685 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.181, allocations: 0 / 0.7685 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001678/0.1811, allocations: 115.2 kB / 0.7686 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.1812, allocations: 37.7 kB / 0.7687 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.1812, allocations: 0 / 0.7687 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1812, allocations: 8.25 kB / 0.7687 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.358e-05/0.1813, allocations: 12 kB / 0.7687 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.1813, allocations: 4 kB / 0.7687 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.1814, allocations: 11.94 kB / 0.7687 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1814, allocations: 11.94 kB / 0.7687 GB, free: 5.715 MB / 0.5606 GB 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.0001226/0.1816, allocations: 148.1 kB / 0.7689 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.1816, allocations: 4 kB / 0.7689 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.389e-05/0.1817, allocations: 3.531 kB / 0.7689 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1817, allocations: 0 / 0.7689 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.1817, allocations: 7.984 kB / 0.7689 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1817, allocations: 3.984 kB / 0.7689 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.1819, allocations: 153.6 kB / 0.769 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1819, allocations: 3.984 kB / 0.769 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1819, allocations: 0 / 0.769 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1819, allocations: 4 kB / 0.769 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.1819, allocations: 3.938 kB / 0.769 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.1819, allocations: 0 / 0.769 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1819, allocations: 0 / 0.769 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.1821, allocations: 169.2 kB / 0.7692 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.1822, allocations: 81.06 kB / 0.7693 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.1822, allocations: 7.938 kB / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.369e-05/0.1823, allocations: 0 / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.1823, allocations: 0 / 0.7693 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.1823, allocations: 7.938 kB / 0.7693 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.838e-05/0.1824, allocations: 95.28 kB / 0.7694 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1824, allocations: 0 / 0.7694 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002437/0.1826, allocations: 8.031 kB / 0.7694 GB, free: 4.922 MB / 0.5606 GB 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.0005684/0.1832, allocations: 0.7025 MB / 0.7701 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001578/0.1834, allocations: 87.67 kB / 0.7702 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.1834, allocations: 4.125 kB / 0.7702 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.613e-05/0.1835, allocations: 59.39 kB / 0.7702 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002042/0.1837, allocations: 8 kB / 0.7702 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003922/0.1841, allocations: 138.5 kB / 0.7704 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.1844, allocations: 0.6768 MB / 0.771 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001125/0.1846, allocations: 19.72 kB / 0.7711 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.1846, allocations: 11.5 kB / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of SimCode: time 2.91e-07/0.1846, allocations: 0 / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.2083, allocations: 1.443 MB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/7.975, allocations: 27.31 kB / 0.7725 GB, free: 1.785 MB / 0.5606 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)