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.001257/0.001257, allocations: 108 kB / 15.61 MB, free: 148 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.001258/0.001258, allocations: 195.6 kB / 16.53 MB, free: 6.695 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002326/0.002326, allocations: 290.5 kB / 290.7 MB, free: 2.062 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9798/0.9798, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002664/0.002664, allocations: 100.6 kB / 0.5954 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1627, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001809/0.1646, allocations: 0.5686 MB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002649/0.1649, allocations: 50.98 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.1649, allocations: 3.938 kB / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.012e-05/0.1649, allocations: 0 / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-06/0.1649, allocations: 0 / 0.6809 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.1652, allocations: 15.92 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.388e-05/0.1652, allocations: 4 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.1653, allocations: 4 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.443e-05/0.1653, allocations: 7.922 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.109e-05/0.1653, allocations: 4.781 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-06/0.1653, allocations: 0 / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1654, allocations: 17.67 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.019e-05/0.1654, allocations: 0 / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.117e-05/0.1655, allocations: 7.984 kB / 0.681 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.052e-05/0.1656, allocations: 11.98 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1656, allocations: 0 / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1656, allocations: 0.875 kB / 0.681 GB, free: 15.9 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.1656, allocations: 0 / 0.681 GB, free: 15.9 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.0003251/0.1659, allocations: 316.3 kB / 0.6813 GB, free: 15.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.166, allocations: 20.45 kB / 0.6813 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.481e-05/0.166, allocations: 35.66 kB / 0.6813 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.1663, allocations: 18.06 kB / 0.6814 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.1664, allocations: 168.3 kB / 0.6815 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.1664, allocations: 384 / 0.6815 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-06/0.1664, allocations: 4.375 kB / 0.6815 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.1666, allocations: 38.25 kB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1666, allocations: 3.938 kB / 0.6816 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.1666, allocations: 7.984 kB / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1666, allocations: 0 / 0.6816 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.503e-05/0.1667, allocations: 7.984 kB / 0.6816 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.1669, allocations: 142 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.816e-05/0.1669, allocations: 30.53 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.961e-05/0.167, allocations: 12.92 kB / 0.6818 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.167, allocations: 0 / 0.6818 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.1671, allocations: 34.56 kB / 0.6818 GB, free: 14.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1671, allocations: 0 / 0.6818 GB, free: 14.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002439/0.1673, allocations: 53.55 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.1674, allocations: 51.41 kB / 0.6819 GB, free: 14.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.968e-05/0.1674, allocations: 93.86 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1674, allocations: 25.7 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.142e-05/0.1675, allocations: 80.14 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.1675, allocations: 3.938 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.1676, allocations: 17.7 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1677, allocations: 315 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.1678, allocations: 4 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.039e-05/0.1678, allocations: 7.984 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.213e-05/0.1679, allocations: 16.84 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1679, allocations: 0 / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001201/0.168, allocations: 41.62 kB / 0.6825 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.168, allocations: 8.094 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1681, allocations: 11.88 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1681, allocations: 0 / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.661e-05/0.1682, allocations: 3.984 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1682, allocations: 4 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.266e-05/0.1682, allocations: 4 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.1682, allocations: 0 / 0.6825 GB, free: 14.12 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 7.327e-05/0.1683, allocations: 106.5 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.1683, allocations: 4 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.1683, allocations: 15 kB / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1684, allocations: 0 / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1684, allocations: 0 / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1684, allocations: 0 / 0.6826 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.1685, allocations: 145.7 kB / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1685, allocations: 0 / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.936e-05/0.1685, allocations: 4 kB / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.1685, allocations: 0 / 0.6828 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.1685, allocations: 7.922 kB / 0.6828 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1686, allocations: 4 kB / 0.6828 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1686, allocations: 8 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.1687, allocations: 68.97 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.1688, allocations: 77.11 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.1688, allocations: 3.938 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.174e-05/0.1688, allocations: 7.984 kB / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-06/0.1688, allocations: 32 / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.1688, allocations: 4 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.1689, allocations: 75.28 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1689, allocations: 0 / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001695/0.1691, allocations: 4 kB / 0.683 GB, free: 13.5 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.0004683/0.1695, allocations: 0.6046 MB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.1697, allocations: 19.92 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1697, allocations: 0 / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.238e-05/0.1697, allocations: 4 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.1699, allocations: 0 / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000333/0.1702, allocations: 110.8 kB / 0.6837 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1705, allocations: 0.6729 MB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.251e-05/0.1705, allocations: 0 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.575e-05/0.1706, allocations: 7.438 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1706, allocations: 0 / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.1924, allocations: 0.9365 MB / 0.6853 GB, free: 11.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.444, allocations: 12.48 kB / 0.6853 GB, free: 11.12 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)