Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.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.Examples.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_QuadraticLinear",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.001064/0.001064, allocations: 108 kB / 15.6 MB, free: 132 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.001185/0.001185, allocations: 194.4 kB / 16.53 MB, free: 6.391 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002012, allocations: 286.5 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9535/0.9535, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 94.8 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.159, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.QuadraticLinear): time 0.002615/0.1617, allocations: 1.479 MB / 0.6817 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002986/0.162, allocations: 108.5 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.474e-05/0.1621, allocations: 0 / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.163e-05/0.1621, allocations: 11.92 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.83e-05/0.1622, allocations: 7.938 kB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.1624, allocations: 19.97 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.703e-05/0.1625, allocations: 47.78 kB / 0.6819 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.836e-05/0.1626, allocations: 12.28 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.714e-05/0.1626, allocations: 11.98 kB / 0.6819 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.873e-05/0.1627, allocations: 31.84 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.1627, allocations: 4 kB / 0.682 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.677e-05/0.1628, allocations: 27.98 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.1628, allocations: 7.984 kB / 0.682 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.1629, allocations: 19.88 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.163, allocations: 63.72 kB / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.163, allocations: 0 / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.163, allocations: 0 / 0.6821 GB, free: 14.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.163, allocations: 0 / 0.6821 GB, free: 14.73 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005167/0.1636, allocations: 375.3 kB / 0.6824 GB, free: 14.31 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1636, allocations: 12.03 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.1637, allocations: 30.75 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.876e-05/0.1637, allocations: 12.83 kB / 0.6825 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.1638, allocations: 176.2 kB / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.1638, allocations: 8.375 kB / 0.6827 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.1638, allocations: 4.375 kB / 0.6827 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.1641, allocations: 74.2 kB / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1641, allocations: 3.938 kB / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.1641, allocations: 0 / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.1641, allocations: 7.938 kB / 0.6828 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.1644, allocations: 71.92 kB / 0.6828 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003249/0.1648, allocations: 284.8 kB / 0.6831 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.165, allocations: 70.53 kB / 0.6832 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.1651, allocations: 48.84 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002159/0.1653, allocations: 105.1 kB / 0.6833 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.1654, allocations: 38.56 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1654, allocations: 0 / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005363/0.1659, allocations: 149.4 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.166, allocations: 51.41 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.1661, allocations: 130.5 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.1661, allocations: 29.7 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.1661, allocations: 92.11 kB / 0.6838 GB, free: 12.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.1662, allocations: 15.81 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.1662, allocations: 13.72 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.666e-05/0.1663, allocations: 318.8 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1664, allocations: 31.97 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.1666, allocations: 44.14 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.1669, allocations: 80.8 kB / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1669, allocations: 0 / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003282/0.1672, allocations: 113.6 kB / 0.6844 GB, free: 12.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1672, allocations: 11.98 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1672, allocations: 0 / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.1673, allocations: 0 / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1674, allocations: 15.98 kB / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1674, allocations: 0 / 0.6844 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.1675, allocations: 11.89 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.1675, allocations: 4 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 7.728e-05/0.1676, allocations: 126.4 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.1676, allocations: 0 / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003613/0.168, allocations: 117.5 kB / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.168, allocations: 4 kB / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.168, allocations: 0 / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.168, allocations: 4 kB / 0.6847 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.1682, allocations: 181.5 kB / 0.6848 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1682, allocations: 0 / 0.6848 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.403e-05/0.1683, allocations: 19.97 kB / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1683, allocations: 0 / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.1683, allocations: 4 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1683, allocations: 4 kB / 0.6849 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1683, allocations: 7.938 kB / 0.6849 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003677/0.1687, allocations: 211.3 kB / 0.6851 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.1687, allocations: 84.95 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.1688, allocations: 4 kB / 0.6851 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1689, allocations: 7.984 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.1689, allocations: 11.92 kB / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.1689, allocations: 0 / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.265e-05/0.169, allocations: 105.8 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.169, allocations: 0 / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.1692, allocations: 12 kB / 0.6853 GB, free: 11.1 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 (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.000632/0.1699, allocations: 0.7396 MB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.1702, allocations: 87.84 kB / 0.6861 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1702, allocations: 0 / 0.6861 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.1704, allocations: 35.97 kB / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.1706, allocations: 19.97 kB / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004175/0.171, allocations: 175.6 kB / 0.6863 GB, free: 9.984 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.1713, allocations: 0.6885 MB / 0.687 GB, free: 9.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.71e-05/0.1713, allocations: 4 kB / 0.687 GB, free: 9.266 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.1713, allocations: 23.42 kB / 0.687 GB, free: 9.242 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1713, allocations: 0 / 0.687 GB, free: 9.242 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01709/0.1884, allocations: 1.861 MB / 0.6888 GB, free: 7.465 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.761/6.95, allocations: 21.2 kB / 0.6888 GB, free: 7.449 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear_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_Examples_QuadraticLinear.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1)