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.00126/0.001261, allocations: 108 kB / 15.6 MB, free: 132 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.001259/0.001259, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002411/0.002411, allocations: 294.1 kB / 290.7 MB, free: 1.84 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 178.6 MB / 0.5073 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004132/0.004132, allocations: 101.9 kB / 0.6066 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.177, allocations: 89.14 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegStep): time 0.001851/0.1789, allocations: 0.5811 MB / 0.6942 GB, free: 3.637 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002287/0.1792, allocations: 52.47 kB / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.43e-05/0.1792, allocations: 1.125 kB / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.741e-05/0.1792, allocations: 0 / 0.6942 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.017e-06/0.1792, allocations: 3.938 kB / 0.6942 GB, free: 3.582 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.1794, allocations: 24.86 kB / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.923e-05/0.1795, allocations: 0 / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.791e-05/0.1795, allocations: 3.438 kB / 0.6943 GB, free: 3.559 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.1796, allocations: 3.984 kB / 0.6943 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.1796, allocations: 4 kB / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.1796, allocations: 0 / 0.6943 GB, free: 3.551 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.762e-05/0.1797, allocations: 15.98 kB / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.1797, allocations: 0 / 0.6943 GB, free: 3.535 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.41e-05/0.1797, allocations: 4 kB / 0.6943 GB, free: 3.531 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.099e-05/0.1798, allocations: 15.97 kB / 0.6943 GB, free: 3.516 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1798, allocations: 0 / 0.6943 GB, free: 3.516 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1798, allocations: 0.7812 kB / 0.6943 GB, free: 3.516 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.1799, allocations: 0 / 0.6943 GB, free: 3.516 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.000317/0.1802, allocations: 312.2 kB / 0.6946 GB, free: 3.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1802, allocations: 12.72 kB / 0.6946 GB, free: 3.148 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.1803, allocations: 34.69 kB / 0.6946 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.1805, allocations: 25.92 kB / 0.6947 GB, free: 3.082 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1806, allocations: 161 kB / 0.6948 GB, free: 2.887 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.1806, allocations: 4.375 kB / 0.6948 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-06/0.1807, allocations: 4.312 kB / 0.6948 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.1808, allocations: 34.25 kB / 0.6949 GB, free: 2.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1808, allocations: 7.938 kB / 0.6949 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1808, allocations: 0 / 0.6949 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1808, allocations: 3.938 kB / 0.6949 GB, free: 2.828 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.181, allocations: 7.984 kB / 0.6949 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.1811, allocations: 145.7 kB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.327e-05/0.1812, allocations: 30.53 kB / 0.695 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.117e-05/0.1813, allocations: 8.922 kB / 0.6951 GB, free: 2.578 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.1813, allocations: 3.984 kB / 0.6951 GB, free: 2.574 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1813, allocations: 34.56 kB / 0.6951 GB, free: 2.531 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.635e-06/0.1813, allocations: 3.984 kB / 0.6951 GB, free: 2.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002457/0.1816, allocations: 45.62 kB / 0.6951 GB, free: 2.477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.1816, allocations: 59.34 kB / 0.6952 GB, free: 2.406 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.641e-05/0.1817, allocations: 97.84 kB / 0.6953 GB, free: 2.301 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.1817, allocations: 25.7 kB / 0.6953 GB, free: 2.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.1817, allocations: 84.12 kB / 0.6954 GB, free: 2.184 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.1818, allocations: 4.188 kB / 0.6954 GB, free: 2.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.1818, allocations: 9.719 kB / 0.6954 GB, free: 2.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1819, allocations: 319 kB / 0.6957 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.495e-05/0.182, allocations: 3.984 kB / 0.6957 GB, free: 1.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.72e-05/0.182, allocations: 4 kB / 0.6957 GB, free: 1.836 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.872e-05/0.1821, allocations: 16.84 kB / 0.6957 GB, free: 1.816 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1821, allocations: 0 / 0.6957 GB, free: 1.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001228/0.1822, allocations: 49.69 kB / 0.6958 GB, free: 1.762 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.1823, allocations: 8 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1823, allocations: 3.938 kB / 0.6958 GB, free: 1.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1823, allocations: 4 kB / 0.6958 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.288e-05/0.1824, allocations: 7.984 kB / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/0.1824, allocations: 0 / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.058e-05/0.1824, allocations: 0 / 0.6958 GB, free: 1.738 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.1824, allocations: 0 / 0.6958 GB, free: 1.738 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.447e-05/0.1825, allocations: 110.4 kB / 0.6959 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1825, allocations: 8.031 kB / 0.6959 GB, free: 1.613 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.1825, allocations: 11.05 kB / 0.6959 GB, free: 1.605 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1825, allocations: 0 / 0.6959 GB, free: 1.605 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1825, allocations: 3.938 kB / 0.6959 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.1826, allocations: 0 / 0.6959 GB, free: 1.602 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.692e-05/0.1827, allocations: 145.7 kB / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1827, allocations: 0 / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.149e-05/0.1827, allocations: 7.984 kB / 0.6961 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.1827, allocations: 0 / 0.6961 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.1827, allocations: 3.938 kB / 0.6961 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1827, allocations: 8 kB / 0.6961 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1827, allocations: 0 / 0.6961 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.1829, allocations: 61.06 kB / 0.6961 GB, free: 1.312 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.1829, allocations: 85.03 kB / 0.6962 GB, free: 1.211 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.183, allocations: 7.938 kB / 0.6962 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.206e-05/0.183, allocations: 4 kB / 0.6962 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.057e-05/0.183, allocations: 4.031 kB / 0.6962 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.183, allocations: 0 / 0.6962 GB, free: 1.195 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.721e-05/0.1831, allocations: 75.28 kB / 0.6963 GB, free: 1.121 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1831, allocations: 0 / 0.6963 GB, free: 1.121 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001675/0.1832, allocations: 4 kB / 0.6963 GB, free: 1.117 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.0004686/0.1837, allocations: 0.6066 MB / 0.6969 GB, free: 492 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.1839, allocations: 15.92 kB / 0.6969 GB, free: 476 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1839, allocations: 0 / 0.6969 GB, free: 476 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.1839, allocations: 7.984 kB / 0.6969 GB, free: 468 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.1841, allocations: 0 / 0.6969 GB, free: 468 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003483/0.1844, allocations: 110.9 kB / 0.697 GB, free: 316 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.1847, allocations: 0.6729 MB / 0.6977 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.39e-05/0.1848, allocations: 0 / 0.6977 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.1848, allocations: 7.438 kB / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.1848, allocations: 0 / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.206, allocations: 0.9508 MB / 0.6986 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.314/7.52, allocations: 6.328 kB / 0.6986 GB, free: 14.73 MB / 0.4981 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)