Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",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.000856/0.0008561, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.006003/0.006003, allocations: 171.8 kB / 16.26 MB, free: 6.676 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.324/1.324, allocations: 223.3 MB / 240.3 MB, free: 5.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.001647/0.001647, allocations: 271.1 kB / 291.7 MB, free: 1.855 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9213/0.9213, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004422/0.0004422, allocations: 19.66 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1695, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.001567/0.1711, allocations: 1.158 MB / 0.6864 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000674/0.1718, allocations: 408.9 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.1718, allocations: 0 / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.1718, allocations: 1.812 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.458e-05/0.1719, allocations: 3.938 kB / 0.6868 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.1722, allocations: 75.62 kB / 0.6868 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.315e-05/0.1723, allocations: 27.92 kB / 0.6869 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.814e-05/0.1724, allocations: 10.42 kB / 0.6869 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.463e-05/0.1724, allocations: 15.92 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.706e-05/0.1724, allocations: 3.938 kB / 0.6869 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.1725, allocations: 4 kB / 0.6869 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.1728, allocations: 271.6 kB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.1729, allocations: 6.281 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.651e-05/0.1729, allocations: 33.64 kB / 0.6872 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001782/0.1731, allocations: 111.7 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1731, allocations: 0 / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1731, allocations: 0 / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1731, allocations: 0 / 0.6873 GB, free: 12.83 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.0004478/0.1736, allocations: 366.5 kB / 0.6876 GB, free: 12.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1736, allocations: 8.031 kB / 0.6877 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.1737, allocations: 34.75 kB / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.879e-05/0.1737, allocations: 0.9375 kB / 0.6877 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.1738, allocations: 168.3 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.1738, allocations: 4.938 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1739, allocations: 1.125 kB / 0.6879 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.174, allocations: 59.36 kB / 0.6879 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.174, allocations: 4.562 kB / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.1741, allocations: 0 / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.1741, allocations: 5.344 kB / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.1742, allocations: 45.27 kB / 0.688 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002892/0.1745, allocations: 259.8 kB / 0.6882 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.1747, allocations: 50.44 kB / 0.6883 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.932e-05/0.1748, allocations: 30.44 kB / 0.6883 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006892/0.1755, allocations: 468.5 kB / 0.6887 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.658e-05/0.1756, allocations: 35.91 kB / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.1756, allocations: 0 / 0.6888 GB, free: 11.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003954/0.176, allocations: 99.7 kB / 0.6889 GB, free: 10.97 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.176, allocations: 55.41 kB / 0.6889 GB, free: 10.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.421e-05/0.1761, allocations: 105.8 kB / 0.689 GB, free: 10.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.1761, allocations: 25.7 kB / 0.689 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.1762, allocations: 84.14 kB / 0.6891 GB, free: 10.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.1762, allocations: 7.844 kB / 0.6891 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.1762, allocations: 13.84 kB / 0.6891 GB, free: 10.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.95e-05/0.1763, allocations: 318.8 kB / 0.6894 GB, free: 10.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.1764, allocations: 23.98 kB / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.537e-05/0.1765, allocations: 15.98 kB / 0.6895 GB, free: 10.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001594/0.1767, allocations: 52.89 kB / 0.6895 GB, free: 10.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1767, allocations: 3.938 kB / 0.6895 GB, free: 10.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002137/0.1769, allocations: 81.66 kB / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.1769, allocations: 10.03 kB / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1769, allocations: 0 / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.177, allocations: 0 / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.37e-05/0.1771, allocations: 15.92 kB / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1771, allocations: 0 / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.114e-05/0.1771, allocations: 16.02 kB / 0.6897 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.1771, allocations: 0 / 0.6897 GB, free: 10.11 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 7.366e-05/0.1772, allocations: 110.4 kB / 0.6898 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.717e-05/0.1773, allocations: 7.906 kB / 0.6898 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002362/0.1775, allocations: 85.19 kB / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1775, allocations: 0 / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1775, allocations: 0 / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1775, allocations: 0 / 0.6898 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.1777, allocations: 165.6 kB / 0.69 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.1777, allocations: 0 / 0.69 GB, free: 9.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.835e-05/0.1778, allocations: 11.98 kB / 0.69 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1778, allocations: 0 / 0.69 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1778, allocations: 0 / 0.69 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.978e-06/0.1778, allocations: 7.969 kB / 0.69 GB, free: 9.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1778, allocations: 3.938 kB / 0.69 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002704/0.1781, allocations: 179.5 kB / 0.6902 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.1781, allocations: 77.11 kB / 0.6903 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.1782, allocations: 0 / 0.6903 GB, free: 9.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.692e-05/0.1782, allocations: 15.98 kB / 0.6903 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.1783, allocations: 0 / 0.6903 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.1783, allocations: 8.188 kB / 0.6903 GB, free: 9.348 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.286e-05/0.1783, allocations: 87.27 kB / 0.6904 GB, free: 9.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1783, allocations: 0 / 0.6904 GB, free: 9.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1786, allocations: 16 kB / 0.6904 GB, free: 9.246 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.0006156/0.1792, allocations: 0.7319 MB / 0.6911 GB, free: 8.488 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.1794, allocations: 47.95 kB / 0.6912 GB, free: 8.441 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1794, allocations: 0 / 0.6912 GB, free: 8.441 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.1795, allocations: 28.05 kB / 0.6912 GB, free: 8.414 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.1798, allocations: 4 kB / 0.6912 GB, free: 8.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004242/0.1803, allocations: 154.3 kB / 0.6913 GB, free: 8.223 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1805, allocations: 0.677 MB / 0.692 GB, free: 7.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.474e-05/0.1806, allocations: 3.984 kB / 0.692 GB, free: 7.516 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.638e-05/0.1806, allocations: 23.48 kB / 0.692 GB, free: 7.492 MB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1806, allocations: 0 / 0.692 GB, free: 7.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01111/0.1918, allocations: 1.344 MB / 0.6933 GB, free: 6.281 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.192, allocations: 206.2 kB / 0.6935 GB, free: 6.027 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.058, allocations: 0 / 0.6935 GB, free: 6.027 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)