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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 274.8 kB / 303 MB, free: 9.574 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.318/1.318, allocations: 180.9 MB / 0.5261 GB, free: 14.69 MB / 382.1 MB " [Timeout remaining time 178] 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_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002895/0.002895, allocations: 102.7 kB / 0.7248 GB, free: 39.85 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.189, allocations: 94.15 MB / 0.8167 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.002772/0.1918, allocations: 1.264 MB / 0.8179 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.193, allocations: 0.5857 MB / 0.8185 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.22e-05/0.193, allocations: 0 / 0.8185 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.193, allocations: 7.938 kB / 0.8185 GB, free: 3.559 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.869e-05/0.1931, allocations: 3.938 kB / 0.8185 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000627/0.1937, allocations: 143.4 kB / 0.8187 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.459e-05/0.1938, allocations: 4 kB / 0.8187 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.031e-05/0.1938, allocations: 3.984 kB / 0.8187 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.912e-05/0.1938, allocations: 4 kB / 0.8187 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.056e-05/0.1939, allocations: 8 kB / 0.8187 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1939, allocations: 0 / 0.8187 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000543/0.1944, allocations: 347.3 kB / 0.819 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.1944, allocations: 3.938 kB / 0.819 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.284e-05/0.1945, allocations: 4 kB / 0.819 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.1947, allocations: 147.7 kB / 0.8192 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1948, allocations: 0 / 0.8192 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.823e-06/0.1948, allocations: 0 / 0.8192 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.1948, allocations: 3.938 kB / 0.8192 GB, free: 2.898 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.0004978/0.1953, allocations: 351.1 kB / 0.8195 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.1953, allocations: 8.031 kB / 0.8195 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.1954, allocations: 38.73 kB / 0.8195 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.1954, allocations: 8.938 kB / 0.8196 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.1955, allocations: 164.3 kB / 0.8197 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1955, allocations: 384 / 0.8197 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.1956, allocations: 384 / 0.8197 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.1957, allocations: 30.27 kB / 0.8197 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1957, allocations: 3.938 kB / 0.8197 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.1957, allocations: 0 / 0.8197 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1957, allocations: 3.984 kB / 0.8197 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.045e-05/0.1957, allocations: 4 kB / 0.8197 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002058/0.1959, allocations: 157.7 kB / 0.8199 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.106e-05/0.196, allocations: 30.53 kB / 0.8199 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.205e-05/0.196, allocations: 8.922 kB / 0.8199 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.196, allocations: 0 / 0.8199 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.1961, allocations: 30.56 kB / 0.82 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.1961, allocations: 0 / 0.82 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001586/0.1962, allocations: 45.64 kB / 0.82 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.1963, allocations: 55.41 kB / 0.8201 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.878e-05/0.1964, allocations: 93.84 kB / 0.8202 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1964, allocations: 25.7 kB / 0.8202 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.21e-05/0.1964, allocations: 88.08 kB / 0.8203 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.1965, allocations: 7.953 kB / 0.8203 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.184e-05/0.1965, allocations: 9.719 kB / 0.8203 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000155/0.1967, allocations: 323 kB / 0.8206 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.291e-05/0.1967, allocations: 0 / 0.8206 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.394e-05/0.1967, allocations: 7.984 kB / 0.8206 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.288e-05/0.1967, allocations: 12.86 kB / 0.8206 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1967, allocations: 0 / 0.8206 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.396e-05/0.1968, allocations: 41.66 kB / 0.8206 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1968, allocations: 7.938 kB / 0.8207 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1968, allocations: 4 kB / 0.8207 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.1968, allocations: 96 / 0.8207 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.197, allocations: 19.92 kB / 0.8207 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004566/0.1975, allocations: 0.5782 MB / 0.8212 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.118e-05/0.1975, allocations: 0 / 0.8212 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.1975, allocations: 0 / 0.8212 GB, free: 0.5117 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 9.037e-05/0.1976, allocations: 109.8 kB / 0.8213 GB, free: 404 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-06/0.1976, allocations: 8.125 kB / 0.8214 GB, free: 396 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.1977, allocations: 60.67 kB / 0.8214 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1977, allocations: 0 / 0.8214 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1977, allocations: 0 / 0.8214 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1977, allocations: 0 / 0.8214 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.1979, allocations: 157.6 kB / 0.8216 GB, free: 124 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1979, allocations: 0 / 0.8216 GB, free: 124 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.286e-05/0.198, allocations: 11.98 kB / 0.8216 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.198, allocations: 0 / 0.8216 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.198, allocations: 0 / 0.8216 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004009/0.1984, allocations: 0.586 MB / 0.8221 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.1984, allocations: 3.938 kB / 0.8221 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.484e-05/0.1985, allocations: 69.09 kB / 0.8222 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.1985, allocations: 77.11 kB / 0.8223 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.046e-05/0.1985, allocations: 4.125 kB / 0.8223 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.443e-05/0.1985, allocations: 0 / 0.8223 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.529e-05/0.1986, allocations: 3.938 kB / 0.8223 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.1986, allocations: 4 kB / 0.8223 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.72e-05/0.1986, allocations: 79.28 kB / 0.8224 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1986, allocations: 0 / 0.8224 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002181/0.1988, allocations: 15.92 kB / 0.8224 GB, free: 15.21 MB / 0.5762 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.0005263/0.1994, allocations: 0.6163 MB / 0.823 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002071/0.1996, allocations: 23.98 kB / 0.823 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1996, allocations: 0 / 0.823 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 8.038e-05/0.1996, allocations: 11.98 kB / 0.823 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.1998, allocations: 10.11 kB / 0.823 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005907/0.2004, allocations: 135.8 kB / 0.8232 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.2007, allocations: 0.6805 MB / 0.8238 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.986e-05/0.2008, allocations: 4 kB / 0.8238 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.785e-05/0.2008, allocations: 7.438 kB / 0.8238 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/0.2008, allocations: 0 / 0.8238 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.2295, allocations: 1.426 MB / 0.8252 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.2, allocations: 4 kB / 0.8252 GB, free: 12.43 MB / 0.5762 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.4508241629228] Failed to read output from testmodel.py, exit status != 0: 12.291108785197139 12.319752344 12.119508319 Calling exit ...