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.007366/0.007366, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001837/0.001837, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002264/0.002264, allocations: 286.8 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9874/0.9874, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001896, allocations: 95.92 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1676, allocations: 86.97 MB / 0.7659 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001793/0.1695, allocations: 0.58 MB / 0.7665 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007349/0.1702, allocations: 318.8 kB / 0.7668 GB, free: 7.992 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.1703, allocations: 4 kB / 0.7668 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.1703, allocations: 0 / 0.7668 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.744e-06/0.1703, allocations: 0 / 0.7668 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000469/0.1708, allocations: 115.6 kB / 0.7669 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.92e-05/0.1708, allocations: 4 kB / 0.7669 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.1709, allocations: 0 / 0.7669 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.49e-05/0.1709, allocations: 3.938 kB / 0.7669 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.565e-05/0.1709, allocations: 4 kB / 0.7669 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.938e-06/0.1709, allocations: 0 / 0.7669 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004396/0.1714, allocations: 279.6 kB / 0.7672 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.1714, allocations: 4 kB / 0.7672 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.881e-05/0.1714, allocations: 0 / 0.7672 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.1716, allocations: 92.02 kB / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1716, allocations: 0 / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.024e-06/0.1717, allocations: 0 / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.1717, allocations: 0 / 0.7673 GB, free: 7.496 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.0003606/0.172, allocations: 331.3 kB / 0.7676 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.511e-05/0.1721, allocations: 8.031 kB / 0.7676 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.1721, allocations: 38.69 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.1722, allocations: 0.9375 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.1723, allocations: 164.4 kB / 0.7678 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.1723, allocations: 384 / 0.7678 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.1724, allocations: 4.375 kB / 0.7678 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.974e-05/0.1725, allocations: 34.27 kB / 0.7679 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1725, allocations: 7.875 kB / 0.7679 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.1725, allocations: 3.984 kB / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.1725, allocations: 0 / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.958e-05/0.1725, allocations: 0 / 0.7679 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.1727, allocations: 149.7 kB / 0.768 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.706e-05/0.1728, allocations: 22.56 kB / 0.768 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.817e-05/0.1728, allocations: 4.859 kB / 0.768 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005195/0.1733, allocations: 425.6 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.1733, allocations: 34.56 kB / 0.7685 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.1734, allocations: 0 / 0.7685 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.1735, allocations: 49.58 kB / 0.7685 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1736, allocations: 51.41 kB / 0.7686 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.875e-05/0.1736, allocations: 89.86 kB / 0.7687 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.1736, allocations: 25.7 kB / 0.7687 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.1737, allocations: 80.14 kB / 0.7688 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.1737, allocations: 3.953 kB / 0.7688 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.1738, allocations: 17.7 kB / 0.7688 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.1739, allocations: 315 kB / 0.7691 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.1739, allocations: 4 kB / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.1739, allocations: 4 kB / 0.7691 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.215e-05/0.174, allocations: 8.797 kB / 0.7691 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.174, allocations: 0 / 0.7691 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.778e-05/0.1741, allocations: 33.7 kB / 0.7691 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1741, allocations: 7.938 kB / 0.7691 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1741, allocations: 7.922 kB / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.1741, allocations: 0 / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.751e-05/0.1742, allocations: 8.094 kB / 0.7692 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1742, allocations: 0 / 0.7692 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.068e-05/0.1742, allocations: 3.938 kB / 0.7692 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.1742, allocations: 0 / 0.7692 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.981e-05/0.1743, allocations: 106.5 kB / 0.7693 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.1743, allocations: 8 kB / 0.7693 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.29e-05/0.1744, allocations: 44.69 kB / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1745, allocations: 4.031 kB / 0.7693 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1745, allocations: 0 / 0.7693 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1745, allocations: 0 / 0.7693 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.1746, allocations: 145.7 kB / 0.7694 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1746, allocations: 0 / 0.7694 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.198e-05/0.1746, allocations: 0 / 0.7694 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1746, allocations: 0 / 0.7694 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.1746, allocations: 3.938 kB / 0.7695 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1746, allocations: 3.984 kB / 0.7695 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1746, allocations: 4 kB / 0.7695 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.74e-05/0.1747, allocations: 61.08 kB / 0.7695 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.1748, allocations: 77.11 kB / 0.7696 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/0.1748, allocations: 7.938 kB / 0.7696 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.524e-06/0.1748, allocations: 0 / 0.7696 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.19e-05/0.1748, allocations: 3.984 kB / 0.7696 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.1748, allocations: 4 kB / 0.7696 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.56e-05/0.1749, allocations: 75.28 kB / 0.7697 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1749, allocations: 0 / 0.7697 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002139/0.1751, allocations: 15.97 kB / 0.7697 GB, free: 4.617 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.0004524/0.1756, allocations: 0.6124 MB / 0.7703 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.563e-05/0.1756, allocations: 7.938 kB / 0.7703 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1757, allocations: 0 / 0.7703 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.011e-06/0.1757, allocations: 4.094 kB / 0.7703 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.1758, allocations: 4 kB / 0.7703 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.1761, allocations: 114.5 kB / 0.7704 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.1763, allocations: 0.669 MB / 0.7711 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.593e-05/0.1764, allocations: 0 / 0.7711 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.1764, allocations: 14.31 kB / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of SimCode: time 1.683e-06/0.1764, allocations: 0 / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.1937, allocations: 1.216 MB / 0.7723 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.562, allocations: 14.2 kB / 0.7723 GB, free: 2.008 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)