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.001291/0.001291, 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.001283/0.001283, allocations: 193.8 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002447/0.002447, allocations: 287 kB / 290.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.051/1.051, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002652/0.002652, allocations: 102 kB / 0.6065 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1549, allocations: 89.15 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.QuadraticLinear): time 0.002751/0.1576, allocations: 1.48 MB / 0.695 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003543/0.158, allocations: 112.5 kB / 0.6952 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.569e-05/0.1581, allocations: 0 / 0.6952 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.114e-05/0.1581, allocations: 8.844 kB / 0.6952 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.1582, allocations: 8.406 kB / 0.6952 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.1584, allocations: 21.53 kB / 0.6952 GB, free: 2.594 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.1e-05/0.1585, allocations: 51.78 kB / 0.6952 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.1586, allocations: 8 kB / 0.6952 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.926e-05/0.1587, allocations: 16.48 kB / 0.6953 GB, free: 2.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.441e-05/0.1588, allocations: 29.25 kB / 0.6953 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.1588, allocations: 4 kB / 0.6953 GB, free: 2.488 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.195e-05/0.1589, allocations: 23.98 kB / 0.6953 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.1589, allocations: 11.98 kB / 0.6953 GB, free: 2.453 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.672e-05/0.159, allocations: 22.8 kB / 0.6953 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1591, allocations: 52.09 kB / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1591, allocations: 0 / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1591, allocations: 0 / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1592, allocations: 0 / 0.6954 GB, free: 2.383 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.0005906/0.1597, allocations: 384 kB / 0.6958 GB, free: 1.957 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1598, allocations: 8.031 kB / 0.6958 GB, free: 1.949 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.1598, allocations: 34.75 kB / 0.6958 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1599, allocations: 6.562 kB / 0.6958 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.16, allocations: 180.3 kB / 0.696 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1601, allocations: 4.375 kB / 0.696 GB, free: 1.684 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.266e-06/0.1601, allocations: 384 / 0.696 GB, free: 1.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.1603, allocations: 82.81 kB / 0.6961 GB, free: 1.598 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1604, allocations: 3.938 kB / 0.6961 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.1604, allocations: 0 / 0.6961 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1604, allocations: 0 / 0.6961 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003049/0.1607, allocations: 71.92 kB / 0.6961 GB, free: 1.523 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003717/0.1611, allocations: 296.7 kB / 0.6964 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.1613, allocations: 70.45 kB / 0.6965 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.1615, allocations: 48.84 kB / 0.6965 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/0.1617, allocations: 113.1 kB / 0.6966 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.1618, allocations: 34.56 kB / 0.6967 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1618, allocations: 0 / 0.6967 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005744/0.1624, allocations: 141.6 kB / 0.6968 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.1624, allocations: 51.41 kB / 0.6969 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1625, allocations: 131.3 kB / 0.697 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.1626, allocations: 25.7 kB / 0.697 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.1626, allocations: 92.05 kB / 0.6971 GB, free: 424 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.1626, allocations: 11.84 kB / 0.6971 GB, free: 412 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.117e-05/0.1627, allocations: 17.7 kB / 0.6971 GB, free: 388 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1628, allocations: 318.8 kB / 0.6974 GB, free: 60 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.163, allocations: 43.95 kB / 0.6975 GB, free: 16 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.1631, allocations: 32.05 kB / 0.6975 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.1634, allocations: 80.72 kB / 0.6976 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1635, allocations: 11.98 kB / 0.6976 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003279/0.1638, allocations: 109.5 kB / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1638, allocations: 4 kB / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1638, allocations: 0 / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1638, allocations: 0 / 0.6977 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.164, allocations: 23.91 kB / 0.6977 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.164, allocations: 0 / 0.6977 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.614e-05/0.1641, allocations: 15.98 kB / 0.6977 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1641, allocations: 0 / 0.6977 GB, free: 15.73 MB / 0.4981 GB 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 9.032e-05/0.1642, allocations: 118.4 kB / 0.6979 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.1642, allocations: 7.906 kB / 0.6979 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000376/0.1646, allocations: 121.5 kB / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1646, allocations: 0 / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1646, allocations: 0 / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1646, allocations: 0 / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.1648, allocations: 181.6 kB / 0.6981 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1648, allocations: 0 / 0.6981 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.719e-05/0.1649, allocations: 15.98 kB / 0.6982 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1649, allocations: 7.938 kB / 0.6982 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.1649, allocations: 0 / 0.6982 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1649, allocations: 0 / 0.6982 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1649, allocations: 7.938 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.1653, allocations: 203.8 kB / 0.6984 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.1654, allocations: 89 kB / 0.6985 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.1654, allocations: 3.984 kB / 0.6985 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1655, allocations: 19.97 kB / 0.6985 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.755e-05/0.1656, allocations: 0 / 0.6985 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.1656, allocations: 0 / 0.6985 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.191e-05/0.1656, allocations: 106.6 kB / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1656, allocations: 0 / 0.6986 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002261/0.1659, allocations: 11.98 kB / 0.6986 GB, free: 14.75 MB / 0.4981 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 (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.0007106/0.1666, allocations: 0.7435 MB / 0.6993 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.1669, allocations: 79.92 kB / 0.6994 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.167, allocations: 4 kB / 0.6994 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1671, allocations: 43.89 kB / 0.6994 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.1674, allocations: 18.89 kB / 0.6995 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004542/0.1678, allocations: 187.1 kB / 0.6996 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.1681, allocations: 0.6885 MB / 0.7003 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.618e-05/0.1682, allocations: 4 kB / 0.7003 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.1682, allocations: 15.44 kB / 0.7003 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1682, allocations: 0 / 0.7003 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.1907, allocations: 1.867 MB / 0.7022 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.615, allocations: 14.48 kB / 0.7022 GB, free: 11.09 MB / 0.4981 GB (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)