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.001101/0.001101, allocations: 108 kB / 15.61 MB, free: 128 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.001106/0.001106, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.272/1.272, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001982/0.001982, allocations: 282.1 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.9259/0.9259, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00311/0.003111, allocations: 99.8 kB / 0.5954 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1657, allocations: 86.98 MB / 0.6803 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.00188/0.1676, allocations: 0.5583 MB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002631/0.1679, allocations: 55.78 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.491e-05/0.1679, allocations: 0.625 kB / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.168, allocations: 0 / 0.6809 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.479e-06/0.168, allocations: 4.812 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.1682, allocations: 20.66 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.591e-05/0.1683, allocations: 3.984 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.1683, allocations: 0.625 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.499e-05/0.1683, allocations: 7.984 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.742e-05/0.1684, allocations: 1.312 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.1684, allocations: 0 / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.354e-05/0.1685, allocations: 15.98 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.155e-05/0.1685, allocations: 8.75 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.458e-05/0.1685, allocations: 0 / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.441e-05/0.1686, allocations: 15.97 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1686, allocations: 3.938 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1686, allocations: 0 / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.1686, allocations: 0 / 0.681 GB, free: 15.88 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002658/0.1689, allocations: 315.6 kB / 0.6813 GB, free: 15.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.1689, allocations: 12.06 kB / 0.6813 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.939e-05/0.169, allocations: 30.75 kB / 0.6813 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002431/0.1692, allocations: 16.91 kB / 0.6813 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.021e-05/0.1693, allocations: 172.4 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.1693, allocations: 384 / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.1694, allocations: 4.312 kB / 0.6815 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.1695, allocations: 34.25 kB / 0.6815 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1695, allocations: 7.938 kB / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.1695, allocations: 3.938 kB / 0.6816 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1695, allocations: 0 / 0.6816 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.252e-05/0.1696, allocations: 7.984 kB / 0.6816 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001185/0.1697, allocations: 150 kB / 0.6817 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.635e-05/0.1698, allocations: 22.59 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.838e-05/0.1699, allocations: 8.922 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.1699, allocations: 3.984 kB / 0.6817 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.1699, allocations: 34.56 kB / 0.6818 GB, free: 14.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1699, allocations: 0 / 0.6818 GB, free: 14.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002147/0.1702, allocations: 53.56 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.1702, allocations: 55.41 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.34e-05/0.1702, allocations: 89.86 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.1703, allocations: 29.69 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.137e-05/0.1703, allocations: 80.14 kB / 0.6821 GB, free: 14.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.1703, allocations: 7.922 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.1703, allocations: 13.84 kB / 0.6821 GB, free: 14.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.1704, allocations: 314.8 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.439e-05/0.1705, allocations: 4 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.657e-05/0.1705, allocations: 7.984 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.954e-05/0.1706, allocations: 20.78 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1706, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001175/0.1708, allocations: 41.75 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1708, allocations: 8 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1708, allocations: 3.938 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1708, allocations: 0 / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.1709, allocations: 7.984 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1709, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.137e-05/0.1709, allocations: 0 / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.1709, allocations: 0 / 0.6825 GB, free: 14.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 (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 6.29e-05/0.171, allocations: 114.5 kB / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-06/0.171, allocations: 7.938 kB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.1711, allocations: 15.03 kB / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1711, allocations: 0 / 0.6826 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1711, allocations: 3.938 kB / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1711, allocations: 0 / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.98e-05/0.1712, allocations: 141.7 kB / 0.6827 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1712, allocations: 4 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.1712, allocations: 3.984 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.1712, allocations: 0 / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.1712, allocations: 15.88 kB / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1712, allocations: 0 / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1712, allocations: 0 / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.1714, allocations: 65.03 kB / 0.6828 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.1714, allocations: 85.09 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.1714, allocations: 7.938 kB / 0.6829 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.412e-05/0.1715, allocations: 4.031 kB / 0.6829 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-06/0.1715, allocations: 0 / 0.6829 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-06/0.1715, allocations: 0 / 0.6829 GB, free: 13.56 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.207e-05/0.1715, allocations: 75.28 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1715, allocations: 0 / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001781/0.1717, allocations: 4 kB / 0.683 GB, free: 13.48 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 (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.0003993/0.1721, allocations: 0.6085 MB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001389/0.1723, allocations: 11.98 kB / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1723, allocations: 0 / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.1723, allocations: 7.984 kB / 0.6836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.1725, allocations: 2.344 kB / 0.6836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.1728, allocations: 114.8 kB / 0.6837 GB, free: 12.67 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.1731, allocations: 0.6729 MB / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.396e-05/0.1731, allocations: 0 / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.1731, allocations: 7.438 kB / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1731, allocations: 0 / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.1886, allocations: 0.9378 MB / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.745/6.933, allocations: 8.656 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB (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)