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.005947/0.005947, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00131/0.00131, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002611/0.00261, allocations: 286.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.074/1.074, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002704/0.002704, allocations: 99.86 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5042/0.5069, allocations: 89.13 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.QuadraticLinear): time 0.002662/0.5096, allocations: 1.493 MB / 0.7828 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.51, allocations: 120.3 kB / 0.7829 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.357e-05/0.51, allocations: 0 / 0.7829 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.427e-05/0.5101, allocations: 5.391 kB / 0.7829 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.138e-05/0.5101, allocations: 6.75 kB / 0.7829 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.5104, allocations: 21.41 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.909e-05/0.5105, allocations: 42.14 kB / 0.783 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.137e-05/0.5106, allocations: 18.89 kB / 0.783 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.631e-05/0.5106, allocations: 17.64 kB / 0.783 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.351e-05/0.5107, allocations: 23.16 kB / 0.783 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.5107, allocations: 7.875 kB / 0.7831 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.739e-05/0.5108, allocations: 21.23 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.655e-05/0.5108, allocations: 13.28 kB / 0.7831 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.497e-05/0.5109, allocations: 23.95 kB / 0.7831 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.511, allocations: 62.47 kB / 0.7832 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.511, allocations: 0 / 0.7832 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.233e-06/0.511, allocations: 4 kB / 0.7832 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.511, allocations: 0 / 0.7832 GB, free: 12.59 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005597/0.5116, allocations: 382 kB / 0.7835 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.5116, allocations: 8.594 kB / 0.7835 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.5117, allocations: 32.67 kB / 0.7836 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.5117, allocations: 7.672 kB / 0.7836 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.5119, allocations: 182.6 kB / 0.7838 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.5119, allocations: 1.438 kB / 0.7838 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.5119, allocations: 5.406 kB / 0.7838 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.5122, allocations: 73.16 kB / 0.7838 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.5122, allocations: 5.344 kB / 0.7838 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.5122, allocations: 4.516 kB / 0.7838 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.5122, allocations: 1.219 kB / 0.7838 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.5125, allocations: 75.64 kB / 0.7839 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003767/0.5129, allocations: 287.5 kB / 0.7842 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.5131, allocations: 65.41 kB / 0.7843 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.5133, allocations: 41.97 kB / 0.7843 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000233/0.5135, allocations: 110.5 kB / 0.7844 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.5136, allocations: 31.12 kB / 0.7844 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.423e-06/0.5136, allocations: 0 / 0.7844 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0006093/0.5142, allocations: 159.6 kB / 0.7846 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.5143, allocations: 52.34 kB / 0.7846 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.5144, allocations: 124 kB / 0.7848 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.5144, allocations: 26.55 kB / 0.7848 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.709e-05/0.5145, allocations: 96.69 kB / 0.7849 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.5145, allocations: 10.48 kB / 0.7849 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.5145, allocations: 20.95 kB / 0.7849 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.5147, allocations: 315.8 kB / 0.7852 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.5148, allocations: 35.75 kB / 0.7852 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.515, allocations: 39.91 kB / 0.7853 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.5153, allocations: 82.81 kB / 0.7854 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5153, allocations: 0 / 0.7854 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003497/0.5156, allocations: 109.3 kB / 0.7855 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.5157, allocations: 4.625 kB / 0.7855 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.5157, allocations: 6.266 kB / 0.7855 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.5157, allocations: 0 / 0.7855 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.5158, allocations: 23.5 kB / 0.7855 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.5158, allocations: 0 / 0.7855 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.203e-05/0.5159, allocations: 16.58 kB / 0.7855 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.5159, allocations: 0.7031 kB / 0.7855 GB, free: 10.64 MB / 0.5606 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.03e-05/0.516, allocations: 115.3 kB / 0.7856 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.5161, allocations: 7.625 kB / 0.7856 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004016/0.5165, allocations: 126.6 kB / 0.7857 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.5165, allocations: 0.6562 kB / 0.7857 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5165, allocations: 1.594 kB / 0.7857 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.5165, allocations: 0.6562 kB / 0.7857 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.5167, allocations: 178.9 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5167, allocations: 0 / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.499e-05/0.5168, allocations: 15.84 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.5168, allocations: 1.188 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.5169, allocations: 4.516 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.5169, allocations: 1.25 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5169, allocations: 0.6562 kB / 0.7859 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003983/0.5173, allocations: 207.6 kB / 0.7861 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.5173, allocations: 96.08 kB / 0.7862 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.5173, allocations: 0 / 0.7862 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.5175, allocations: 15.73 kB / 0.7862 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.5175, allocations: 4.156 kB / 0.7862 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.5175, allocations: 1.984 kB / 0.7862 GB, free: 9.988 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.609e-05/0.5176, allocations: 96 kB / 0.7863 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5176, allocations: 5.188 kB / 0.7863 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002363/0.5178, allocations: 13.41 kB / 0.7864 GB, free: 9.902 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 (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.0007399/0.5186, allocations: 0.7459 MB / 0.7871 GB, free: 9.223 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003656/0.519, allocations: 88.28 kB / 0.7872 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.519, allocations: 0 / 0.7872 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.5191, allocations: 44.75 kB / 0.7872 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.5194, allocations: 4.766 kB / 0.7872 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/0.5199, allocations: 183.1 kB / 0.7874 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.5202, allocations: 0.6896 MB / 0.7881 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.245e-05/0.5203, allocations: 7.062 kB / 0.7881 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.5203, allocations: 18.61 kB / 0.7881 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.5203, allocations: 0 / 0.7881 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.5423, allocations: 1.894 MB / 0.7899 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.778/8.32, allocations: 8.406 kB / 0.7899 GB, free: 7.898 MB / 0.5606 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)