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.007481/0.007481, allocations: 99.19 kB / 15.73 MB, free: 6.027 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.001645/0.001646, allocations: 194.7 kB / 16.67 MB, free: 5.961 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002263/0.002263, allocations: 286.5 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 0.9692/0.9692, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 95.86 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1772, allocations: 86.97 MB / 0.766 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001966/0.1792, allocations: 0.5826 MB / 0.7665 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003034/0.1796, allocations: 55.78 kB / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.735e-05/0.1796, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.1796, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.1796, allocations: 0 / 0.7666 GB, free: 8.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.1799, allocations: 11.92 kB / 0.7666 GB, free: 8.227 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.323e-05/0.18, allocations: 8 kB / 0.7666 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.207e-05/0.18, allocations: 3.938 kB / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.1801, allocations: 0 / 0.7666 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.1801, allocations: 11.98 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.1802, allocations: 0 / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.1803, allocations: 15.98 kB / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.1803, allocations: 0 / 0.7666 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.1803, allocations: 3.984 kB / 0.7666 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.1805, allocations: 19.92 kB / 0.7666 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1805, allocations: 0 / 0.7666 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.364e-06/0.1805, allocations: 0 / 0.7666 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.1805, allocations: 0 / 0.7666 GB, free: 8.164 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.0003461/0.1808, allocations: 311.8 kB / 0.7669 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1809, allocations: 12.03 kB / 0.767 GB, free: 7.797 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.921e-05/0.181, allocations: 38.73 kB / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003068/0.1813, allocations: 16.91 kB / 0.767 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1814, allocations: 160.4 kB / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.1814, allocations: 384 / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.1814, allocations: 384 / 0.7672 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.1816, allocations: 42.19 kB / 0.7672 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1816, allocations: 7.938 kB / 0.7672 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.1816, allocations: 0 / 0.7672 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.1817, allocations: 11.94 kB / 0.7672 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.413e-05/0.1817, allocations: 7.984 kB / 0.7672 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.1819, allocations: 145.7 kB / 0.7674 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.151e-05/0.182, allocations: 18.61 kB / 0.7674 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.437e-05/0.1821, allocations: 20.91 kB / 0.7674 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1821, allocations: 0 / 0.7674 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.1821, allocations: 34.5 kB / 0.7674 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1822, allocations: 0 / 0.7674 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0002495/0.1824, allocations: 49.61 kB / 0.7675 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.1825, allocations: 51.41 kB / 0.7675 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.427e-05/0.1825, allocations: 89.98 kB / 0.7676 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.1825, allocations: 33.7 kB / 0.7677 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.1826, allocations: 80.14 kB / 0.7677 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.1826, allocations: 7.938 kB / 0.7677 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/0.1826, allocations: 13.72 kB / 0.7677 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1828, allocations: 314.8 kB / 0.768 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.818e-05/0.1828, allocations: 3.984 kB / 0.7681 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.884e-05/0.1829, allocations: 4 kB / 0.7681 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.641e-05/0.183, allocations: 24.84 kB / 0.7681 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.183, allocations: 0 / 0.7681 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001276/0.1831, allocations: 41.69 kB / 0.7681 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.1832, allocations: 4 kB / 0.7681 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.1832, allocations: 7.938 kB / 0.7681 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1832, allocations: 3.984 kB / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.899e-05/0.1833, allocations: 0 / 0.7681 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.1833, allocations: 4.031 kB / 0.7681 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.244e-05/0.1833, allocations: 4 kB / 0.7681 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1833, allocations: 0 / 0.7681 GB, free: 6.395 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.692e-05/0.1834, allocations: 110.4 kB / 0.7682 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.1834, allocations: 7.984 kB / 0.7683 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.039e-05/0.1835, allocations: 7.062 kB / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1835, allocations: 0 / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1835, allocations: 0 / 0.7683 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1835, allocations: 7.938 kB / 0.7683 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.636e-05/0.1836, allocations: 141.7 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1836, allocations: 0 / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.448e-05/0.1837, allocations: 11.92 kB / 0.7684 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1837, allocations: 0 / 0.7684 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1837, allocations: 3.938 kB / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1837, allocations: 0 / 0.7684 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1837, allocations: 4 kB / 0.7684 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.1838, allocations: 69.11 kB / 0.7685 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.1839, allocations: 77.11 kB / 0.7686 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.1839, allocations: 3.938 kB / 0.7686 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.264e-05/0.1839, allocations: 4 kB / 0.7686 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.184, allocations: 7.984 kB / 0.7686 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.184, allocations: 0 / 0.7686 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.255e-05/0.184, allocations: 75.28 kB / 0.7687 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.184, allocations: 0 / 0.7687 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001799/0.1842, allocations: 8.031 kB / 0.7687 GB, free: 5.773 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.0004494/0.1847, allocations: 0.6046 MB / 0.7692 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.1848, allocations: 20.02 kB / 0.7693 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1848, allocations: 0 / 0.7693 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.761e-05/0.1849, allocations: 11.92 kB / 0.7693 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.185, allocations: 3.938 kB / 0.7693 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000356/0.1854, allocations: 110.6 kB / 0.7694 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.1857, allocations: 0.6729 MB / 0.77 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.591e-05/0.1857, allocations: 4.125 kB / 0.77 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.1858, allocations: 11.44 kB / 0.7701 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.1858, allocations: 0 / 0.7701 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.2021, allocations: 0.9489 MB / 0.771 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.349/7.551, allocations: 19.23 kB / 0.771 GB, free: 3.379 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)