Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",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.001478/0.001478, allocations: 108 kB / 15.61 MB, free: 152 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.001543/0.001543, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002471/0.002471, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.034/1.034, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 102.5 kB / 0.6065 GB, free: 24.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1606, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.00256/0.1632, allocations: 1.445 MB / 0.695 GB, free: 2.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006701/0.1639, allocations: 387.7 kB / 0.6954 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.013e-05/0.1639, allocations: 0 / 0.6954 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.445e-05/0.1639, allocations: 7.938 kB / 0.6954 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.767e-05/0.164, allocations: 3.938 kB / 0.6954 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.1644, allocations: 116.9 kB / 0.6955 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.458e-05/0.1644, allocations: 23.92 kB / 0.6955 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.454e-05/0.1645, allocations: 4.281 kB / 0.6955 GB, free: 2.242 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.707e-05/0.1646, allocations: 16.55 kB / 0.6955 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.721e-05/0.1646, allocations: 11.94 kB / 0.6956 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.1646, allocations: 4.656 kB / 0.6956 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.165, allocations: 279.6 kB / 0.6958 GB, free: 1.938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.239e-05/0.165, allocations: 6.453 kB / 0.6958 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.1651, allocations: 15.92 kB / 0.6958 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.1652, allocations: 103.7 kB / 0.6959 GB, free: 1.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1653, allocations: 0 / 0.6959 GB, free: 1.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1653, allocations: 0 / 0.6959 GB, free: 1.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.1653, allocations: 0 / 0.6959 GB, free: 1.816 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004651/0.1657, allocations: 361.2 kB / 0.6963 GB, free: 1.414 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1658, allocations: 8.031 kB / 0.6963 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.714e-05/0.1658, allocations: 34.75 kB / 0.6963 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.1659, allocations: 8.938 kB / 0.6963 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.166, allocations: 168.2 kB / 0.6965 GB, free: 1.152 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.166, allocations: 4.375 kB / 0.6965 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1661, allocations: 4.359 kB / 0.6965 GB, free: 1.145 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.1662, allocations: 54.17 kB / 0.6966 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1662, allocations: 3.938 kB / 0.6966 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.1663, allocations: 0 / 0.6966 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.1663, allocations: 0 / 0.6966 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1664, allocations: 39.95 kB / 0.6966 GB, free: 1.043 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003148/0.1668, allocations: 249 kB / 0.6968 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.1669, allocations: 50.38 kB / 0.6969 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.399e-05/0.167, allocations: 20.84 kB / 0.6969 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006907/0.1677, allocations: 465.5 kB / 0.6973 GB, free: 124 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.1677, allocations: 30.56 kB / 0.6974 GB, free: 84 kB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 2.735e-06/0.1678, allocations: 4 kB / 0.6974 GB, free: 80 kB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003773/0.1681, allocations: 81.69 kB / 0.6975 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.1682, allocations: 51.41 kB / 0.6975 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.824e-05/0.1683, allocations: 109.8 kB / 0.6976 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.1683, allocations: 25.7 kB / 0.6976 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.724e-05/0.1683, allocations: 91.98 kB / 0.6977 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.1684, allocations: 4.125 kB / 0.6977 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.1684, allocations: 17.72 kB / 0.6977 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.1685, allocations: 314.8 kB / 0.698 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-05/0.1686, allocations: 15.98 kB / 0.6981 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.1687, allocations: 19.98 kB / 0.6981 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1688, allocations: 36.89 kB / 0.6981 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1689, allocations: 11.92 kB / 0.6981 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000207/0.1691, allocations: 65.58 kB / 0.6982 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.1691, allocations: 4 kB / 0.6982 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1691, allocations: 0 / 0.6982 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1691, allocations: 0 / 0.6982 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.881e-05/0.1692, allocations: 15.92 kB / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.1692, allocations: 0 / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.588e-05/0.1693, allocations: 12.27 kB / 0.6982 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-06/0.1693, allocations: 0 / 0.6982 GB, free: 15.16 MB / 0.4981 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 (2): * Single equations (assignments): 2 * 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.448e-05/0.1694, allocations: 114.4 kB / 0.6983 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.1694, allocations: 8 kB / 0.6983 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000222/0.1696, allocations: 73.19 kB / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1696, allocations: 0 / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1696, allocations: 4.031 kB / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.1696, allocations: 0 / 0.6984 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.1698, allocations: 161.6 kB / 0.6986 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1698, allocations: 0 / 0.6986 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.799e-05/0.1699, allocations: 11.98 kB / 0.6986 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1699, allocations: 0 / 0.6986 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.1699, allocations: 3.938 kB / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1699, allocations: 3.938 kB / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1699, allocations: 0 / 0.6986 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.1702, allocations: 175.4 kB / 0.6988 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.13e-05/0.1702, allocations: 77.11 kB / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.1703, allocations: 0 / 0.6988 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.677e-05/0.1703, allocations: 7.984 kB / 0.6988 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.1704, allocations: 3.938 kB / 0.6988 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.1704, allocations: 4 kB / 0.6988 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.777e-05/0.1704, allocations: 91.3 kB / 0.6989 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1704, allocations: 0 / 0.6989 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002234/0.1707, allocations: 16 kB / 0.6989 GB, free: 14.32 MB / 0.4981 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 (2): * Single equations (assignments): 2 * 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.0005921/0.1713, allocations: 0.7046 MB / 0.6996 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.1715, allocations: 39.95 kB / 0.6997 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1715, allocations: 0 / 0.6997 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.515e-05/0.1716, allocations: 19.98 kB / 0.6997 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002566/0.1718, allocations: 4 kB / 0.6997 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000402/0.1723, allocations: 159.2 kB / 0.6998 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.1725, allocations: 0.6768 MB / 0.7005 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.061e-05/0.1726, allocations: 0 / 0.7005 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.1726, allocations: 11.44 kB / 0.7005 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1726, allocations: 0 / 0.7005 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.1944, allocations: 1.595 MB / 0.7021 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.414/7.608, allocations: 6.562 kB / 0.7021 GB, free: 11.09 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)