Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.007041/0.007041, allocations: 99.5 kB / 15.73 MB, free: 6.441 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.001939/0.001939, allocations: 196.2 kB / 16.67 MB, free: 6.352 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002416/0.002416, allocations: 278.1 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 104 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.172, allocations: 86.97 MB / 0.766 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001627/0.1737, allocations: 0.5761 MB / 0.7665 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000696/0.1744, allocations: 322.8 kB / 0.7668 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.072e-05/0.1744, allocations: 0 / 0.7668 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.616e-05/0.1744, allocations: 0 / 0.7668 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.47e-06/0.1744, allocations: 3.938 kB / 0.7668 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.1749, allocations: 114 kB / 0.7669 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.164e-05/0.175, allocations: 4 kB / 0.7669 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.324e-05/0.175, allocations: 7.938 kB / 0.7669 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.21e-05/0.175, allocations: 0 / 0.7669 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.096e-05/0.1751, allocations: 3.984 kB / 0.7669 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.067e-06/0.1751, allocations: 0 / 0.7669 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.1755, allocations: 279.6 kB / 0.7672 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.767e-06/0.1755, allocations: 0 / 0.7672 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.362e-05/0.1755, allocations: 0 / 0.7672 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.1757, allocations: 88.02 kB / 0.7673 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.1757, allocations: 0 / 0.7673 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1757, allocations: 0 / 0.7673 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.1757, allocations: 4 kB / 0.7673 GB, free: 7.488 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003492/0.1761, allocations: 335.3 kB / 0.7676 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.1761, allocations: 11.97 kB / 0.7676 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.1762, allocations: 30.75 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.1762, allocations: 0.9375 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.1763, allocations: 160.4 kB / 0.7678 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1763, allocations: 8.375 kB / 0.7678 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.1764, allocations: 384 / 0.7678 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.392e-05/0.1765, allocations: 30.25 kB / 0.7679 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1765, allocations: 7.875 kB / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-06/0.1765, allocations: 4 kB / 0.7679 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1765, allocations: 0 / 0.7679 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.665e-05/0.1765, allocations: 4 kB / 0.7679 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.1767, allocations: 141.7 kB / 0.768 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.124e-05/0.1767, allocations: 22.61 kB / 0.768 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.1767, allocations: 4.859 kB / 0.768 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005211/0.1773, allocations: 425.6 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.1773, allocations: 42.55 kB / 0.7685 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1773, allocations: 0 / 0.7685 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001369/0.1775, allocations: 37.58 kB / 0.7685 GB, free: 5.977 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.1775, allocations: 55.41 kB / 0.7686 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.115e-05/0.1776, allocations: 89.98 kB / 0.7687 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1776, allocations: 29.7 kB / 0.7687 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.1776, allocations: 80.14 kB / 0.7688 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1776, allocations: 3.953 kB / 0.7688 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.1777, allocations: 13.72 kB / 0.7688 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1778, allocations: 314.8 kB / 0.7691 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.241e-05/0.1779, allocations: 3.984 kB / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-06/0.1779, allocations: 0 / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.215e-05/0.1779, allocations: 16.86 kB / 0.7691 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1779, allocations: 0 / 0.7691 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.406e-05/0.178, allocations: 33.64 kB / 0.7691 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.178, allocations: 8 kB / 0.7691 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.178, allocations: 3.938 kB / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.178, allocations: 0 / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.653e-05/0.1781, allocations: 0 / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.1781, allocations: 3.938 kB / 0.7691 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.037e-06/0.1781, allocations: 4 kB / 0.7691 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1781, allocations: 3.984 kB / 0.7691 GB, free: 5.27 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 (1): * Single equations (assignments): 1 * 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.747e-05/0.1782, allocations: 114.5 kB / 0.7693 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.1782, allocations: 0 / 0.7693 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.13e-05/0.1783, allocations: 44.7 kB / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1783, allocations: 0 / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1783, allocations: 0 / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1783, allocations: 4 kB / 0.7693 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1784, allocations: 153.7 kB / 0.7695 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1784, allocations: 3.984 kB / 0.7695 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.267e-05/0.1785, allocations: 8.031 kB / 0.7695 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1785, allocations: 0 / 0.7695 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1785, allocations: 3.938 kB / 0.7695 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1785, allocations: 0 / 0.7695 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1785, allocations: 0 / 0.7695 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.33e-05/0.1786, allocations: 61.06 kB / 0.7695 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.224e-05/0.1786, allocations: 77.11 kB / 0.7696 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.004e-05/0.1786, allocations: 7.969 kB / 0.7696 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-06/0.1787, allocations: 0 / 0.7696 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.204e-05/0.1787, allocations: 0 / 0.7696 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.1787, allocations: 8 kB / 0.7696 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.9e-05/0.1787, allocations: 75.28 kB / 0.7697 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1787, allocations: 0 / 0.7697 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002051/0.1789, allocations: 15.92 kB / 0.7697 GB, free: 4.605 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 (1): * Single equations (assignments): 1 * 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.0004438/0.1794, allocations: 0.6052 MB / 0.7703 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.186e-05/0.1795, allocations: 7.938 kB / 0.7703 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1795, allocations: 4 kB / 0.7703 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.791e-06/0.1795, allocations: 0 / 0.7703 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.1796, allocations: 0 / 0.7703 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.1799, allocations: 118.7 kB / 0.7704 GB, free: 3.801 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.1802, allocations: 0.6729 MB / 0.7711 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.71e-05/0.1802, allocations: 3.984 kB / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.606e-05/0.1802, allocations: 7.438 kB / 0.7711 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of SimCode: time 2.7e-07/0.1803, allocations: 7.875 kB / 0.7711 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.2018, allocations: 1.208 MB / 0.7723 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.646/7.848, allocations: 20.58 kB / 0.7723 GB, free: 1.996 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1)