Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",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.005444/0.005444, allocations: 102.4 kB / 15.73 MB, free: 6.051 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.001101/0.001101, allocations: 199.1 kB / 16.68 MB, free: 5.969 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.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 282.8 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9136/0.9136, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.00177, allocations: 98.45 kB / 0.681 GB, free: 16 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1623, allocations: 86.99 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp): time 0.002414/0.1647, allocations: 1.231 MB / 0.7671 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.1658, allocations: 0.5877 MB / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.385e-05/0.1658, allocations: 0 / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.802e-05/0.1658, allocations: 0 / 0.7677 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.118e-05/0.1659, allocations: 3.938 kB / 0.7677 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.1664, allocations: 146.7 kB / 0.7678 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.073e-05/0.1665, allocations: 19.92 kB / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.018e-05/0.1666, allocations: 0 / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.1666, allocations: 11.92 kB / 0.7679 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.319e-05/0.1666, allocations: 3.938 kB / 0.7679 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.1666, allocations: 0 / 0.7679 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004833/0.1671, allocations: 343.3 kB / 0.7682 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.1672, allocations: 3.984 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.78e-05/0.1672, allocations: 0 / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.1674, allocations: 143.9 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1674, allocations: 0 / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1674, allocations: 4 kB / 0.7683 GB, free: 6.453 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.1674, allocations: 0 / 0.7683 GB, free: 6.453 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003458/0.1678, allocations: 351.4 kB / 0.7687 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.1678, allocations: 12.03 kB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.1679, allocations: 30.75 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.095e-05/0.1679, allocations: 0.9375 kB / 0.7687 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.168, allocations: 164.4 kB / 0.7689 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.168, allocations: 8.375 kB / 0.7689 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.168, allocations: 384 / 0.7689 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.771e-05/0.1681, allocations: 42.2 kB / 0.7689 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1681, allocations: 3.938 kB / 0.7689 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.1681, allocations: 0 / 0.7689 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.1682, allocations: 0 / 0.7689 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.559e-05/0.1682, allocations: 7.984 kB / 0.7689 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.1683, allocations: 145.7 kB / 0.7691 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.1684, allocations: 22.61 kB / 0.7691 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/0.1684, allocations: 12.8 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.1684, allocations: 8.047 kB / 0.7691 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.1685, allocations: 34.56 kB / 0.7691 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1685, allocations: 0 / 0.7691 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.000124/0.1686, allocations: 37.64 kB / 0.7692 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.1686, allocations: 55.34 kB / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.32e-05/0.1687, allocations: 106 kB / 0.7693 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.1687, allocations: 25.7 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.496e-05/0.1687, allocations: 80.14 kB / 0.7694 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1688, allocations: 7.906 kB / 0.7694 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1688, allocations: 9.719 kB / 0.7694 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.446e-05/0.1689, allocations: 314.8 kB / 0.7697 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.1689, allocations: 7.938 kB / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1689, allocations: 0 / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.279e-05/0.169, allocations: 25.03 kB / 0.7698 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.169, allocations: 0 / 0.7698 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.875e-05/0.169, allocations: 33.7 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1691, allocations: 7.938 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1691, allocations: 3.938 kB / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.1691, allocations: 0 / 0.7698 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1692, allocations: 11.98 kB / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003276/0.1696, allocations: 0.5898 MB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.1696, allocations: 4.031 kB / 0.7704 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.1696, allocations: 0 / 0.7704 GB, free: 4.062 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 (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 6.453e-05/0.1697, allocations: 115.7 kB / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.1697, allocations: 4 kB / 0.7705 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.716e-05/0.1698, allocations: 44.81 kB / 0.7706 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1698, allocations: 0 / 0.7706 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1698, allocations: 8.062 kB / 0.7706 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1698, allocations: 0 / 0.7706 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.96e-05/0.1699, allocations: 157.5 kB / 0.7707 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1699, allocations: 0 / 0.7707 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.223e-05/0.17, allocations: 11.98 kB / 0.7707 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.17, allocations: 0 / 0.7707 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.17, allocations: 0 / 0.7707 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002675/0.1703, allocations: 0.5821 MB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1703, allocations: 8.031 kB / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.465e-05/0.1704, allocations: 65.61 kB / 0.7714 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.1704, allocations: 81.11 kB / 0.7715 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.1704, allocations: 4 kB / 0.7715 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.532e-05/0.1705, allocations: 0 / 0.7715 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.02e-05/0.1705, allocations: 7.875 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.1705, allocations: 0 / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.684e-05/0.1705, allocations: 83.31 kB / 0.7715 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1705, allocations: 0 / 0.7715 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002015/0.1707, allocations: 12 kB / 0.7716 GB, free: 2.77 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 (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.000351/0.1711, allocations: 0.6125 MB / 0.7722 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001456/0.1712, allocations: 23.92 kB / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1713, allocations: 4 kB / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.82e-05/0.1713, allocations: 11.98 kB / 0.7722 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001294/0.1715, allocations: 7.938 kB / 0.7722 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004185/0.1719, allocations: 139.8 kB / 0.7723 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.1721, allocations: 0.6768 MB / 0.773 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.29e-05/0.1721, allocations: 0 / 0.773 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.469e-05/0.1722, allocations: 20.83 kB / 0.773 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.1722, allocations: 0 / 0.773 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.1897, allocations: 1.401 MB / 0.7744 GB, free: 4 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.55, allocations: 11.38 kB / 0.7744 GB, free: 16.39 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1)