Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.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.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",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.006408/0.006408, allocations: 99.7 kB / 15.73 MB, free: 6.062 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.001317/0.001317, allocations: 190 kB / 16.67 MB, free: 5.969 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002462/0.002462, allocations: 282.6 kB / 290.8 MB, free: 1.77 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9995/0.9995, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002714, allocations: 96.38 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.179, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002812/0.1819, allocations: 1.443 MB / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002826/0.1822, allocations: 84.66 kB / 0.7674 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.494e-05/0.1822, allocations: 0 / 0.7674 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.448e-05/0.1823, allocations: 7.938 kB / 0.7674 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.389e-05/0.1823, allocations: 7.922 kB / 0.7674 GB, free: 7.395 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.1826, allocations: 19.97 kB / 0.7674 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.025e-05/0.1826, allocations: 19.94 kB / 0.7674 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.958e-05/0.1827, allocations: 11.98 kB / 0.7675 GB, free: 7.344 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.317e-05/0.1828, allocations: 11.94 kB / 0.7675 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.362e-05/0.1828, allocations: 15.92 kB / 0.7675 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.704e-05/0.1829, allocations: 4 kB / 0.7675 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.1829, allocations: 15.98 kB / 0.7675 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.7e-05/0.183, allocations: 3.938 kB / 0.7675 GB, free: 7.293 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.142e-05/0.183, allocations: 15.92 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1831, allocations: 36.11 kB / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1831, allocations: 0 / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.203e-06/0.1831, allocations: 0 / 0.7676 GB, free: 7.242 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.1831, allocations: 0 / 0.7676 GB, free: 7.242 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004891/0.1836, allocations: 347.4 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1837, allocations: 8.031 kB / 0.7679 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.825e-05/0.1837, allocations: 30.75 kB / 0.7679 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.1839, allocations: 16.88 kB / 0.7679 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.184, allocations: 180.3 kB / 0.7681 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.1841, allocations: 384 / 0.7681 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.735e-06/0.1841, allocations: 384 / 0.7681 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.1843, allocations: 58.23 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1843, allocations: 3.938 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1843, allocations: 0 / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1843, allocations: 3.984 kB / 0.7682 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.1845, allocations: 47.95 kB / 0.7682 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.185, allocations: 257 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.1852, allocations: 66.42 kB / 0.7685 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.1853, allocations: 24.91 kB / 0.7686 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1853, allocations: 0 / 0.7686 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.1853, allocations: 34.55 kB / 0.7686 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 3.006e-06/0.1853, allocations: 4 kB / 0.7686 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0004274/0.1858, allocations: 109.5 kB / 0.7687 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.1858, allocations: 51.41 kB / 0.7687 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.032e-05/0.1859, allocations: 101.9 kB / 0.7688 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.186, allocations: 25.7 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.46e-05/0.186, allocations: 88.25 kB / 0.769 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.1861, allocations: 15.89 kB / 0.769 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.1861, allocations: 9.719 kB / 0.769 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1862, allocations: 314.8 kB / 0.7693 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1864, allocations: 23.97 kB / 0.7693 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.803e-05/0.1865, allocations: 27.91 kB / 0.7693 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.1867, allocations: 56.88 kB / 0.7694 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1867, allocations: 3.938 kB / 0.7694 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002462/0.1869, allocations: 81.59 kB / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.187, allocations: 4 kB / 0.7695 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.187, allocations: 0 / 0.7695 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.187, allocations: 7.969 kB / 0.7695 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1871, allocations: 11.98 kB / 0.7695 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.1871, allocations: 0 / 0.7695 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.926e-05/0.1872, allocations: 7.984 kB / 0.7695 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.1872, allocations: 0 / 0.7695 GB, free: 5.023 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 (2): * Single equations (assignments): 2 * 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.748e-05/0.1873, allocations: 114.4 kB / 0.7696 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.1873, allocations: 3.953 kB / 0.7696 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.1874, allocations: 15.52 kB / 0.7696 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1874, allocations: 4 kB / 0.7696 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.1874, allocations: 3.984 kB / 0.7696 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1874, allocations: 0 / 0.7696 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.1876, allocations: 169.6 kB / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1876, allocations: 256 / 0.7698 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.357e-05/0.1877, allocations: 7.984 kB / 0.7698 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1877, allocations: 8 kB / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/0.1877, allocations: 0 / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1877, allocations: 0 / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1877, allocations: 0 / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.188, allocations: 187.4 kB / 0.77 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.042e-05/0.1881, allocations: 77.11 kB / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.1881, allocations: 0 / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.128e-05/0.1882, allocations: 11.98 kB / 0.7701 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.1883, allocations: 0 / 0.7701 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.1883, allocations: 4.031 kB / 0.7701 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.975e-05/0.1883, allocations: 87.27 kB / 0.7702 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1883, allocations: 0 / 0.7702 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002185/0.1885, allocations: 8 kB / 0.7702 GB, free: 4.242 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 (2): * Single equations (assignments): 2 * 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.0006478/0.1892, allocations: 0.7162 MB / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.1895, allocations: 43.95 kB / 0.7709 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.1895, allocations: 0 / 0.7709 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.1896, allocations: 31.91 kB / 0.7709 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.1899, allocations: 10.19 kB / 0.7709 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000462/0.1904, allocations: 147.1 kB / 0.7711 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1907, allocations: 0.6768 MB / 0.7717 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.429e-05/0.1907, allocations: 7.938 kB / 0.7718 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.1908, allocations: 15.42 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1908, allocations: 4 kB / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.2121, allocations: 1.468 MB / 0.7732 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/7.959, allocations: 7.875 kB / 0.7732 GB, free: 1.133 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized_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_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)