Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="IDEAS_dev_IDEAS_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.001609/0.001609, 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.001863/0.001863, allocations: 193.1 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.435/1.435, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9602/0.9602, allocations: 135.1 MB / 425.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 69.14 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.174, allocations: 80.93 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.QuadraticLinear): time 0.002706/0.1767, allocations: 1.471 MB / 0.5859 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003106/0.177, allocations: 108.5 kB / 0.586 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.578e-05/0.1771, allocations: 0 / 0.586 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 4.387e-05/0.1772, allocations: 11.92 kB / 0.586 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.938e-05/0.1772, allocations: 11.88 kB / 0.586 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.1774, allocations: 19.97 kB / 0.5861 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.417e-05/0.1775, allocations: 47.8 kB / 0.5861 GB, free: 2.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.326e-05/0.1776, allocations: 11.98 kB / 0.5861 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.344e-05/0.1777, allocations: 15.92 kB / 0.5861 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.83e-05/0.1777, allocations: 27.91 kB / 0.5862 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.1777, allocations: 8 kB / 0.5862 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.253e-05/0.1778, allocations: 19.98 kB / 0.5862 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.522e-05/0.1779, allocations: 11.92 kB / 0.5862 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.1779, allocations: 19.88 kB / 0.5862 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.178, allocations: 63.78 kB / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.178, allocations: 0 / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.178, allocations: 0 / 0.5863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.178, allocations: 0 / 0.5863 GB, free: 2.594 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.0004871/0.1785, allocations: 379.4 kB / 0.5866 GB, free: 2.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1786, allocations: 12.03 kB / 0.5866 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.474e-05/0.1786, allocations: 34.73 kB / 0.5867 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.1787, allocations: 4.938 kB / 0.5867 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1788, allocations: 172.3 kB / 0.5869 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.1788, allocations: 384 / 0.5869 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.1788, allocations: 4.375 kB / 0.5869 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.1791, allocations: 78.14 kB / 0.5869 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.1791, allocations: 3.938 kB / 0.5869 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.1791, allocations: 4 kB / 0.5869 GB, free: 1.812 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1791, allocations: 4 kB / 0.5869 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000298/0.1794, allocations: 67.92 kB / 0.587 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003735/0.1798, allocations: 296.7 kB / 0.5873 GB, free: 1.402 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.18, allocations: 70.47 kB / 0.5874 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.1802, allocations: 40.92 kB / 0.5874 GB, free: 1.281 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.1804, allocations: 109.1 kB / 0.5875 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.1805, allocations: 34.56 kB / 0.5875 GB, free: 1.113 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.1805, allocations: 0 / 0.5875 GB, free: 1.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005698/0.181, allocations: 145.5 kB / 0.5877 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.1811, allocations: 51.41 kB / 0.5877 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.1812, allocations: 140.8 kB / 0.5879 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.1812, allocations: 25.7 kB / 0.5879 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.1813, allocations: 92.12 kB / 0.588 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.1813, allocations: 9.562 kB / 0.588 GB, free: 0.625 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.1813, allocations: 13.72 kB / 0.588 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1815, allocations: 318.8 kB / 0.5883 GB, free: 292 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.1816, allocations: 35.97 kB / 0.5883 GB, free: 256 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.1818, allocations: 40.14 kB / 0.5884 GB, free: 216 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.1821, allocations: 80.8 kB / 0.5884 GB, free: 132 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1821, allocations: 0 / 0.5884 GB, free: 132 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003646/0.1825, allocations: 129.4 kB / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1825, allocations: 4 kB / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1825, allocations: 0 / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.1825, allocations: 0 / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.1826, allocations: 19.88 kB / 0.5886 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1827, allocations: 0 / 0.5886 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.333e-05/0.1827, allocations: 15.98 kB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.1828, allocations: 4 kB / 0.5886 GB, free: 15.95 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 8.578e-05/0.1828, allocations: 121.8 kB / 0.5887 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.78e-05/0.1829, allocations: 3.906 kB / 0.5887 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003778/0.1833, allocations: 113.5 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1833, allocations: 4 kB / 0.5888 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.1833, allocations: 4 kB / 0.5888 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.1833, allocations: 3.984 kB / 0.5888 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.1835, allocations: 177.6 kB / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1835, allocations: 4 kB / 0.589 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.1836, allocations: 23.91 kB / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.1836, allocations: 0 / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.1836, allocations: 0 / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1836, allocations: 4 kB / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1837, allocations: 0 / 0.589 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.184, allocations: 207.4 kB / 0.5892 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.1841, allocations: 81.02 kB / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.1841, allocations: 4 kB / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.1842, allocations: 7.984 kB / 0.5893 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.346e-05/0.1843, allocations: 7.984 kB / 0.5893 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1843, allocations: 4 kB / 0.5893 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.407e-05/0.1844, allocations: 103.3 kB / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1844, allocations: 0 / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002447/0.1846, allocations: 12 kB / 0.5895 GB, free: 14.98 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.0007297/0.1854, allocations: 0.7435 MB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003808/0.1858, allocations: 83.91 kB / 0.5903 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1858, allocations: 0 / 0.5903 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.1859, allocations: 43.91 kB / 0.5903 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.1862, allocations: 16.02 kB / 0.5903 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005027/0.1867, allocations: 191 kB / 0.5905 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.1869, allocations: 0.6884 MB / 0.5912 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.058e-05/0.187, allocations: 4 kB / 0.5912 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.187, allocations: 23.42 kB / 0.5912 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of SimCode: time 2.01e-07/0.187, allocations: 0 / 0.5912 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.2061, allocations: 1.848 MB / 0.593 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.246/7.452, allocations: 1.719 kB / 0.593 GB, free: 11.33 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.QuadraticLinear.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_Math_Examples_QuadraticLinear.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1)