Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 103.9 kB / 15.98 MB, free: 6.312 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.00139/0.00139, allocations: 197.8 kB / 16.91 MB, free: 6.16 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.298/1.298, allocations: 222.9 MB / 240.6 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002398/0.002398, allocations: 296.7 kB / 291 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.116/1.116, allocations: 178.5 MB / 0.5076 GB, free: 12.69 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002556/0.002556, allocations: 95.86 kB / 0.6066 GB, free: 9.664 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1549, allocations: 89.12 MB / 0.6936 GB, free: 460 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002258/0.1572, allocations: 1.325 MB / 0.6949 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008857/0.1581, allocations: 0.5879 MB / 0.6955 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.605e-05/0.1581, allocations: 0 / 0.6955 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.74e-05/0.1581, allocations: 0 / 0.6955 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.431e-05/0.1582, allocations: 0 / 0.6955 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.1586, allocations: 125.6 kB / 0.6956 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 3.836e-05/0.1587, allocations: 15.92 kB / 0.6956 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.144e-05/0.1587, allocations: 4 kB / 0.6956 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.1587, allocations: 4 kB / 0.6956 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.433e-05/0.1588, allocations: 7.938 kB / 0.6956 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.1588, allocations: 0 / 0.6956 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004663/0.1592, allocations: 343.3 kB / 0.696 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.684e-06/0.1593, allocations: 0 / 0.696 GB, free: 14.03 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.582e-05/0.1593, allocations: 7.938 kB / 0.696 GB, free: 14.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1594, allocations: 100 kB / 0.6961 GB, free: 13.92 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1595, allocations: 0 / 0.6961 GB, free: 13.92 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1595, allocations: 0 / 0.6961 GB, free: 13.92 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.1595, allocations: 0 / 0.6961 GB, free: 13.92 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003754/0.1598, allocations: 351.5 kB / 0.6964 GB, free: 13.53 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.1599, allocations: 12.03 kB / 0.6964 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.1599, allocations: 0.9375 kB / 0.6964 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.16, allocations: 164.4 kB / 0.6966 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1601, allocations: 384 / 0.6966 GB, free: 13.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-06/0.1601, allocations: 4.375 kB / 0.6966 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.977e-05/0.1601, allocations: 38.19 kB / 0.6966 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1602, allocations: 192 / 0.6966 GB, free: 13.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-06/0.1602, allocations: 7.938 kB / 0.6966 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.1602, allocations: 0 / 0.6966 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.214e-05/0.1602, allocations: 4 kB / 0.6966 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.1604, allocations: 153.6 kB / 0.6968 GB, free: 13.06 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.652e-05/0.1604, allocations: 22.61 kB / 0.6968 GB, free: 13.03 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.1604, allocations: 8.859 kB / 0.6968 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.1605, allocations: 0 / 0.6968 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.1605, allocations: 42.56 kB / 0.6968 GB, free: 12.96 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 7.42e-07/0.1605, allocations: 0 / 0.6968 GB, free: 12.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0001212/0.1606, allocations: 45.62 kB / 0.6969 GB, free: 12.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1607, allocations: 51.41 kB / 0.6969 GB, free: 12.85 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.899e-05/0.1608, allocations: 93.86 kB / 0.697 GB, free: 12.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.1608, allocations: 25.7 kB / 0.697 GB, free: 12.72 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.227e-05/0.1608, allocations: 84.08 kB / 0.6971 GB, free: 12.63 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.1608, allocations: 12.16 kB / 0.6971 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.1609, allocations: 17.7 kB / 0.6972 GB, free: 12.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.161, allocations: 310.8 kB / 0.6975 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.177e-05/0.161, allocations: 4 kB / 0.6975 GB, free: 12.28 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.478e-06/0.161, allocations: 3.938 kB / 0.6975 GB, free: 12.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.739e-05/0.1611, allocations: 16.86 kB / 0.6975 GB, free: 12.26 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1611, allocations: 0 / 0.6975 GB, free: 12.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.16e-05/0.1611, allocations: 45.75 kB / 0.6975 GB, free: 12.21 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.1612, allocations: 4 kB / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.1612, allocations: 7.938 kB / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.1612, allocations: 0 / 0.6975 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.1613, allocations: 8 kB / 0.6975 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003771/0.1617, allocations: 0.586 MB / 0.6981 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.1617, allocations: 0 / 0.6981 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.1617, allocations: 4.156 kB / 0.6981 GB, free: 11.57 MB / 0.545 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.132e-05/0.1618, allocations: 121.2 kB / 0.6982 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.1618, allocations: 0 / 0.6982 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.288e-05/0.1619, allocations: 44.81 kB / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1619, allocations: 0 / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1619, allocations: 4 kB / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1619, allocations: 0 / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.1621, allocations: 153.6 kB / 0.6984 GB, free: 11.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.1621, allocations: 11.97 kB / 0.6984 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.541e-05/0.1621, allocations: 4 kB / 0.6984 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1621, allocations: 4 kB / 0.6984 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.1622, allocations: 0 / 0.6984 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003307/0.1625, allocations: 0.5859 MB / 0.699 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1625, allocations: 3.938 kB / 0.699 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.953e-05/0.1626, allocations: 65.2 kB / 0.6991 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.582e-05/0.1626, allocations: 81.09 kB / 0.6992 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.063e-05/0.1627, allocations: 7.984 kB / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.287e-05/0.1627, allocations: 0 / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.101e-05/0.1627, allocations: 3.938 kB / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-06/0.1627, allocations: 0 / 0.6992 GB, free: 10.38 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.025e-05/0.1627, allocations: 83.28 kB / 0.6992 GB, free: 10.29 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1627, allocations: 3.938 kB / 0.6993 GB, free: 10.29 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0001849/0.1629, allocations: 16.06 kB / 0.6993 GB, free: 10.27 MB / 0.545 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001551/0.1631, allocations: 113.3 kB / 0.6994 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001398/0.1632, allocations: 15.98 kB / 0.6994 GB, free: 10.14 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1632, allocations: 0 / 0.6994 GB, free: 10.14 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.382e-05/0.1633, allocations: 23.92 kB / 0.6994 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.1635, allocations: 0 / 0.6994 GB, free: 10.11 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002928/0.1638, allocations: 134.5 kB / 0.6995 GB, free: 9.953 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1641, allocations: 0.6767 MB / 0.7002 GB, free: 9.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.117e-05/0.1641, allocations: 7.438 kB / 0.7002 GB, free: 9.242 MB / 0.545 GB Notification: Performance of SimCode: time 2.61e-07/0.1641, allocations: 0 / 0.7002 GB, free: 9.242 MB / 0.545 GB Notification: Performance of Templates: time 0.002167/0.1663, allocations: 0.6927 MB / 0.7009 GB, free: 8.547 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)