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.004855/0.004855, allocations: 96.31 kB / 15.73 MB, free: 6.039 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.001191/0.001191, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002197/0.002197, allocations: 278.1 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.952/0.952, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 96.52 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1825, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.QuadraticLinear): time 0.003011/0.1856, allocations: 1.478 MB / 0.7674 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004259/0.186, allocations: 104.6 kB / 0.7675 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.1861, allocations: 4 kB / 0.7675 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.599e-05/0.1862, allocations: 3.938 kB / 0.7675 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.191e-05/0.1863, allocations: 11.86 kB / 0.7675 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.1866, allocations: 23.97 kB / 0.7675 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.902e-05/0.1867, allocations: 43.91 kB / 0.7675 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1868, allocations: 15.92 kB / 0.7676 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.219e-05/0.1869, allocations: 19.92 kB / 0.7676 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.318e-05/0.1869, allocations: 23.92 kB / 0.7676 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.1869, allocations: 11.88 kB / 0.7676 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.834e-05/0.187, allocations: 19.98 kB / 0.7676 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.034e-05/0.1871, allocations: 11.98 kB / 0.7676 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.218e-05/0.1871, allocations: 27.84 kB / 0.7677 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.1873, allocations: 52.03 kB / 0.7677 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.1873, allocations: 4 kB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.114e-06/0.1873, allocations: 0 / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.1873, allocations: 0 / 0.7677 GB, free: 7.082 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.0005858/0.1879, allocations: 383.1 kB / 0.7681 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.188, allocations: 12.03 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.58e-05/0.188, allocations: 34.75 kB / 0.7681 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.1881, allocations: 8.891 kB / 0.7681 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.1882, allocations: 180.2 kB / 0.7683 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.1882, allocations: 384 / 0.7683 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.1883, allocations: 384 / 0.7683 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.1886, allocations: 82.16 kB / 0.7684 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1886, allocations: 3.938 kB / 0.7684 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1886, allocations: 0 / 0.7684 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1886, allocations: 0 / 0.7684 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.1889, allocations: 75.92 kB / 0.7685 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003568/0.1893, allocations: 280.9 kB / 0.7687 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.1895, allocations: 74.41 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.1897, allocations: 44.91 kB / 0.7688 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002637/0.19, allocations: 117.1 kB / 0.769 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.19, allocations: 30.56 kB / 0.769 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.19, allocations: 0 / 0.769 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0005806/0.1906, allocations: 141.5 kB / 0.7691 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1907, allocations: 55.41 kB / 0.7692 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.1908, allocations: 129.8 kB / 0.7693 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.1908, allocations: 25.7 kB / 0.7693 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.988e-05/0.1909, allocations: 92.08 kB / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.1909, allocations: 15.84 kB / 0.7694 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.1909, allocations: 17.7 kB / 0.7694 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.191, allocations: 314.8 kB / 0.7697 GB, free: 4.762 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.1912, allocations: 43.95 kB / 0.7698 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.1914, allocations: 35.97 kB / 0.7698 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.1916, allocations: 80.72 kB / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1917, allocations: 0 / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003437/0.192, allocations: 113.9 kB / 0.77 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.192, allocations: 7.938 kB / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.192, allocations: 0 / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1921, allocations: 0 / 0.77 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.1922, allocations: 23.91 kB / 0.77 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1922, allocations: 0 / 0.77 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.291e-05/0.1923, allocations: 15.98 kB / 0.7701 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.866e-06/0.1923, allocations: 0 / 0.7701 GB, free: 4.438 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 8.242e-05/0.1924, allocations: 118.4 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.154e-05/0.1924, allocations: 11.94 kB / 0.7702 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.1928, allocations: 117.5 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1928, allocations: 0 / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1929, allocations: 4 kB / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1929, allocations: 0 / 0.7703 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.193, allocations: 185.6 kB / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.193, allocations: 0 / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.807e-05/0.1932, allocations: 19.92 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1932, allocations: 0 / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.1932, allocations: 0 / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1932, allocations: 3.938 kB / 0.7705 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1932, allocations: 0 / 0.7705 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003677/0.1936, allocations: 211.4 kB / 0.7707 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.1936, allocations: 85.06 kB / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.1936, allocations: 0 / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.1937, allocations: 19.97 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.1938, allocations: 0 / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.1938, allocations: 12 kB / 0.7708 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.557e-05/0.1939, allocations: 97.64 kB / 0.7709 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1939, allocations: 0 / 0.7709 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002322/0.1941, allocations: 8 kB / 0.7709 GB, free: 3.461 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.0006687/0.1948, allocations: 0.7552 MB / 0.7716 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003419/0.1951, allocations: 71.92 kB / 0.7717 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1951, allocations: 0 / 0.7717 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.1953, allocations: 47.89 kB / 0.7718 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1956, allocations: 13.81 kB / 0.7718 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004889/0.1961, allocations: 187 kB / 0.7719 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.1964, allocations: 0.6924 MB / 0.7726 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.498e-05/0.1964, allocations: 7.922 kB / 0.7726 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.782e-05/0.1965, allocations: 15.44 kB / 0.7726 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.1965, allocations: 4 kB / 0.7727 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.363/0.5594, allocations: 1.886 MB / 0.7745 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.275/7.834, allocations: 3.562 kB / 0.7745 GB, free: 14.6 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)