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.001046/0.001047, 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.001188/0.001188, allocations: 193.3 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002148/0.002148, allocations: 286.9 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9278/0.9278, allocations: 169.3 MB / 0.4982 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 99.89 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1583, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002525/0.1608, allocations: 1.426 MB / 0.6817 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002559/0.1611, allocations: 88.58 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.605e-05/0.1612, allocations: 0.625 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.391e-05/0.1612, allocations: 1.406 kB / 0.6818 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.703e-05/0.1612, allocations: 11.88 kB / 0.6818 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000184/0.1614, allocations: 15.98 kB / 0.6818 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.1615, allocations: 24.56 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.648e-05/0.1616, allocations: 16.27 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.907e-05/0.1616, allocations: 11.92 kB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.332e-05/0.1617, allocations: 11.94 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.1617, allocations: 4 kB / 0.6819 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.177e-05/0.1618, allocations: 15.98 kB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.364e-05/0.1618, allocations: 11.92 kB / 0.6819 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.552e-05/0.1618, allocations: 15.94 kB / 0.6819 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.303e-05/0.1619, allocations: 31.83 kB / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1619, allocations: 0 / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1619, allocations: 0 / 0.6819 GB, free: 14.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1619, allocations: 0 / 0.6819 GB, free: 14.89 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003827/0.1623, allocations: 347.5 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.233e-05/0.1623, allocations: 8.031 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.834e-05/0.1624, allocations: 34.75 kB / 0.6823 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1625, allocations: 12.92 kB / 0.6823 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.279e-05/0.1626, allocations: 164.3 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1627, allocations: 4.375 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.1627, allocations: 4.375 kB / 0.6825 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.1629, allocations: 62.22 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1629, allocations: 3.938 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-06/0.1629, allocations: 0 / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1629, allocations: 0 / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1631, allocations: 51.89 kB / 0.6826 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003286/0.1634, allocations: 260.9 kB / 0.6828 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.1636, allocations: 58.48 kB / 0.6829 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.1637, allocations: 32.89 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.1637, allocations: 0 / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1638, allocations: 30.56 kB / 0.683 GB, free: 13.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.455e-06/0.1638, allocations: 4 kB / 0.683 GB, free: 13.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003869/0.1642, allocations: 105.6 kB / 0.6831 GB, free: 13.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.1642, allocations: 51.41 kB / 0.6831 GB, free: 13.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.514e-05/0.1643, allocations: 105.8 kB / 0.6832 GB, free: 13.37 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1643, allocations: 25.7 kB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.1644, allocations: 88.27 kB / 0.6833 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.1644, allocations: 7.906 kB / 0.6833 GB, free: 13.24 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.147e-05/0.1644, allocations: 13.66 kB / 0.6833 GB, free: 13.22 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.1645, allocations: 322.8 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.1646, allocations: 15.98 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.458e-05/0.1647, allocations: 23.97 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.1649, allocations: 64.75 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1649, allocations: 3.938 kB / 0.6838 GB, free: 12.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002305/0.1652, allocations: 77.64 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.1652, allocations: 9.875 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1652, allocations: 0 / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.799e-06/0.1652, allocations: 4.031 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.769e-05/0.1653, allocations: 11.98 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1653, allocations: 0 / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.118e-05/0.1654, allocations: 11.89 kB / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-06/0.1654, allocations: 0 / 0.6839 GB, free: 12.67 MB / 494.1 MB 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 6.161e-05/0.1655, allocations: 118.4 kB / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.1655, allocations: 0 / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.1655, allocations: 3.531 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1655, allocations: 8 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1655, allocations: 0 / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1656, allocations: 0 / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.1657, allocations: 165.6 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1657, allocations: 7.938 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.501e-05/0.1658, allocations: 7.984 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1658, allocations: 0 / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.1658, allocations: 4.25 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1658, allocations: 0 / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.1658, allocations: 4 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002574/0.1661, allocations: 179.4 kB / 0.6843 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.1661, allocations: 81.02 kB / 0.6844 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.1661, allocations: 0 / 0.6844 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.1662, allocations: 7.984 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.1663, allocations: 16 kB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.1663, allocations: 0 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.361e-05/0.1663, allocations: 83.28 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1663, allocations: 0 / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.1665, allocations: 4 kB / 0.6845 GB, free: 11.9 MB / 494.1 MB 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.0005145/0.1671, allocations: 0.7201 MB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002483/0.1673, allocations: 47.95 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1673, allocations: 0 / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.1675, allocations: 32 kB / 0.6853 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.1677, allocations: 8 kB / 0.6853 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004259/0.1681, allocations: 159.2 kB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002103/0.1684, allocations: 0.6806 MB / 0.6861 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.874e-05/0.1684, allocations: 4 kB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.1684, allocations: 7.438 kB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1685, allocations: 0 / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.186, allocations: 1.44 MB / 0.6875 GB, free: 8.805 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.776/6.962, allocations: 11.81 kB / 0.6876 GB, free: 8.793 MB / 494.1 MB (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)