Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.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.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",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.007782/0.007782, allocations: 98.05 kB / 15.73 MB, free: 6.004 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.001453/0.001453, allocations: 197.5 kB / 16.67 MB, free: 5.922 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.152 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002492/0.002492, allocations: 283 kB / 290.8 MB, free: 1.762 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.01/1.01, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003702/0.003702, allocations: 104 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.172, allocations: 86.97 MB / 0.766 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001677/0.1737, allocations: 0.5878 MB / 0.7665 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002518/0.174, allocations: 47.8 kB / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.552e-05/0.174, allocations: 0 / 0.7666 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.174, allocations: 4 kB / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.66e-06/0.174, allocations: 0 / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.1743, allocations: 11.92 kB / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.454e-05/0.1743, allocations: 0 / 0.7666 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.18e-05/0.1744, allocations: 3.938 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.402e-05/0.1744, allocations: 7.984 kB / 0.7666 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.013e-05/0.1744, allocations: 4 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.025e-06/0.1744, allocations: 0 / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.1745, allocations: 23.98 kB / 0.7666 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.1745, allocations: 3.984 kB / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.316e-05/0.1746, allocations: 0 / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 7.672e-05/0.1746, allocations: 7.984 kB / 0.7666 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1747, allocations: 4 kB / 0.7666 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.1747, allocations: 3.938 kB / 0.7666 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.1747, allocations: 0 / 0.7666 GB, free: 8.172 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.0003132/0.175, allocations: 323.8 kB / 0.767 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.175, allocations: 8.031 kB / 0.767 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.1751, allocations: 30.75 kB / 0.767 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.1753, allocations: 16.91 kB / 0.767 GB, free: 7.742 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.1754, allocations: 168.3 kB / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.1755, allocations: 384 / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.1755, allocations: 4.375 kB / 0.7672 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.1756, allocations: 34.25 kB / 0.7672 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1756, allocations: 7.938 kB / 0.7672 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1756, allocations: 0 / 0.7672 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.1757, allocations: 3.938 kB / 0.7672 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.036e-05/0.1758, allocations: 11.98 kB / 0.7672 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.1759, allocations: 145.7 kB / 0.7674 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.068e-05/0.176, allocations: 26.53 kB / 0.7674 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.025e-05/0.176, allocations: 8.859 kB / 0.7674 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.1761, allocations: 8.047 kB / 0.7674 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.1761, allocations: 34.56 kB / 0.7674 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.1761, allocations: 0 / 0.7674 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0002254/0.1763, allocations: 49.61 kB / 0.7675 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.1764, allocations: 51.41 kB / 0.7675 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.946e-05/0.1764, allocations: 93.98 kB / 0.7676 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.1765, allocations: 29.64 kB / 0.7677 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.389e-05/0.1765, allocations: 80.14 kB / 0.7677 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.1765, allocations: 3.953 kB / 0.7677 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.1766, allocations: 17.7 kB / 0.7678 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1767, allocations: 314.8 kB / 0.7681 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.535e-05/0.1767, allocations: 4 kB / 0.7681 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.854e-05/0.1768, allocations: 7.984 kB / 0.7681 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.965e-05/0.1769, allocations: 16.84 kB / 0.7681 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1769, allocations: 0 / 0.7681 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001199/0.177, allocations: 41.69 kB / 0.7681 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.177, allocations: 4 kB / 0.7681 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1771, allocations: 3.938 kB / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.1771, allocations: 0 / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.8e-05/0.1771, allocations: 16.02 kB / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.187e-06/0.1772, allocations: 0 / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.034e-05/0.1772, allocations: 0 / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1772, allocations: 0 / 0.7681 GB, free: 6.402 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.547e-05/0.1773, allocations: 114.5 kB / 0.7683 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-06/0.1773, allocations: 0 / 0.7683 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.1773, allocations: 11 kB / 0.7683 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.1773, allocations: 0 / 0.7683 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.1773, allocations: 8 kB / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1774, allocations: 0 / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.1775, allocations: 149.7 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1775, allocations: 0 / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-05/0.1775, allocations: 3.938 kB / 0.7684 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1775, allocations: 7.984 kB / 0.7684 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1775, allocations: 3.938 kB / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1775, allocations: 0 / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1776, allocations: 0 / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.1777, allocations: 73.06 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/0.1778, allocations: 77.11 kB / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.1778, allocations: 3.938 kB / 0.7686 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.192e-05/0.1778, allocations: 3.984 kB / 0.7686 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-06/0.1778, allocations: 0 / 0.7686 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.1778, allocations: 4 kB / 0.7686 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.645e-05/0.1779, allocations: 75.28 kB / 0.7687 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1779, allocations: 32 / 0.7687 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001741/0.1781, allocations: 4 kB / 0.7687 GB, free: 5.781 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.0004581/0.1785, allocations: 0.6007 MB / 0.7692 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001414/0.1787, allocations: 19.95 kB / 0.7693 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1787, allocations: 0 / 0.7693 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.56e-05/0.1787, allocations: 8 kB / 0.7693 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1789, allocations: 3.938 kB / 0.7693 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003392/0.1792, allocations: 118.6 kB / 0.7694 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.1795, allocations: 0.669 MB / 0.77 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.107e-05/0.1796, allocations: 4.125 kB / 0.77 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.1796, allocations: 11.44 kB / 0.7701 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of SimCode: time 2.9e-07/0.1796, allocations: 0 / 0.7701 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/0.2002, allocations: 0.9589 MB / 0.771 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.855, allocations: 7.938 kB / 0.771 GB, free: 3.395 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep_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_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)