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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008493/0.0008493, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009694/0.0009694, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8769/0.8769, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001415/0.001415, allocations: 237 kB / 259.4 MB, free: 13.03 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6536/0.6536, allocations: 138.4 MB / 454.3 MB, free: 29.99 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.593e-06/1.593e-06, allocations: 0 / 0.6463 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.692e-05/1.852e-05, allocations: 2.281 kB / 0.6463 GB, free: 1.863 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow): time 0.001725/0.001743, allocations: 1.271 MB / 0.6475 GB, free: 0.5781 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0007048/0.002448, allocations: 0.5298 MB / 0.648 GB, free: 48 kB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.802e-05/0.002476, allocations: 4 kB / 0.648 GB, free: 44 kB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.921e-05/0.002496, allocations: 4 kB / 0.6481 GB, free: 40 kB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.998e-05/0.002535, allocations: 0 / 0.6481 GB, free: 40 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.2288/0.2314, allocations: 135.6 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 6.041e-05/0.2314, allocations: 10.81 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.2315, allocations: 0.75 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 3.402e-05/0.2315, allocations: 8.062 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 3.971e-05/0.2316, allocations: 4.812 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.2316, allocations: 2.922 kB / 0.6482 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.2319, allocations: 270 kB / 0.6485 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.232, allocations: 2.281 kB / 0.6485 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.232, allocations: 4.969 kB / 0.6485 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.2322, allocations: 150.8 kB / 0.6486 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2322, allocations: 0.7188 kB / 0.6486 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2322, allocations: 0.9688 kB / 0.6486 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.197e-06/0.2322, allocations: 0.8125 kB / 0.6486 GB, free: 55.84 MB / 0.5573 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.0002836/0.2325, allocations: 275.3 kB / 0.6489 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.2325, allocations: 11.72 kB / 0.6489 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.079e-05/0.2326, allocations: 36.19 kB / 0.6489 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.273e-05/0.2326, allocations: 1.625 kB / 0.6489 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.198e-05/0.2326, allocations: 107.7 kB / 0.649 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.2327, allocations: 1.844 kB / 0.649 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.2327, allocations: 2.5 kB / 0.649 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.327e-05/0.2327, allocations: 32.66 kB / 0.6491 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-06/0.2328, allocations: 192 / 0.6491 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.2328, allocations: 3.594 kB / 0.6491 GB, free: 55.37 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2328, allocations: 5.438 kB / 0.6491 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.416e-05/0.2328, allocations: 9.172 kB / 0.6491 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.788e-05/0.2329, allocations: 121.1 kB / 0.6492 GB, free: 55.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 4.287e-05/0.2329, allocations: 23.77 kB / 0.6492 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.531e-05/0.2329, allocations: 8.406 kB / 0.6492 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.233, allocations: 3.906 kB / 0.6492 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.233, allocations: 32.25 kB / 0.6493 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.233, allocations: 0.8438 kB / 0.6493 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2): time 0.0001176/0.2331, allocations: 43.17 kB / 0.6493 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.2331, allocations: 56.41 kB / 0.6494 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.791e-05/0.2332, allocations: 99.17 kB / 0.6495 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.659e-06/0.2332, allocations: 26.39 kB / 0.6495 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 1.028e-05/0.2332, allocations: 82.59 kB / 0.6496 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.2332, allocations: 7.281 kB / 0.6496 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.09e-05/0.2332, allocations: 17.62 kB / 0.6496 GB, free: 54.81 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 2.703e-05/0.2332, allocations: 312.7 kB / 0.6499 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.09e-05/0.2332, allocations: 4.125 kB / 0.6499 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.575e-06/0.2333, allocations: 6.719 kB / 0.6499 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.275e-05/0.2333, allocations: 15.95 kB / 0.6499 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2333, allocations: 5.438 kB / 0.6499 GB, free: 54.49 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2) (initialization): time 3.574e-05/0.2333, allocations: 36.7 kB / 0.6499 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2333, allocations: 7.438 kB / 0.65 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2333, allocations: 2 kB / 0.65 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.2333, allocations: 0 / 0.65 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.2335, allocations: 16.11 kB / 0.65 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000179/0.2337, allocations: 0.5851 MB / 0.6505 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.271e-05/0.2337, allocations: 2.891 kB / 0.6505 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.2337, allocations: 3 kB / 0.6505 GB, free: 53.88 MB / 0.5573 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 3.832e-05/0.2337, allocations: 110.1 kB / 0.6507 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-06/0.2337, allocations: 3.938 kB / 0.6507 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.705e-05/0.2338, allocations: 55.44 kB / 0.6507 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.2338, allocations: 0.7031 kB / 0.6507 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2338, allocations: 0.7188 kB / 0.6507 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2338, allocations: 0.875 kB / 0.6507 GB, free: 53.72 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.298e-05/0.2339, allocations: 120.8 kB / 0.6508 GB, free: 53.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2339, allocations: 3.938 kB / 0.6508 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.257e-05/0.2339, allocations: 13.28 kB / 0.6508 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2339, allocations: 1.484 kB / 0.6508 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.2339, allocations: 0 / 0.6508 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001042/0.234, allocations: 0.5853 MB / 0.6514 GB, free: 52.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.234, allocations: 0 / 0.6514 GB, free: 52.98 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.935e-05/0.2341, allocations: 70.3 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-06/0.2341, allocations: 6.234 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-06/0.2341, allocations: 2.688 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-06/0.2341, allocations: 0.5625 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.2341, allocations: 6.125 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.2341, allocations: 3.062 kB / 0.6515 GB, free: 52.91 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 1.44e-05/0.2341, allocations: 78.47 kB / 0.6516 GB, free: 52.83 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2341, allocations: 0 / 0.6516 GB, free: 52.83 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001329/0.2343, allocations: 17.34 kB / 0.6516 GB, free: 52.83 MB / 0.5573 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.0002038/0.2345, allocations: 0.6076 MB / 0.6522 GB, free: 52.24 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001277/0.2346, allocations: 18.81 kB / 0.6522 GB, free: 52.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.2346, allocations: 0 / 0.6522 GB, free: 52.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 3.266e-05/0.2346, allocations: 18.27 kB / 0.6522 GB, free: 52.24 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001068/0.2347, allocations: 6.469 kB / 0.6522 GB, free: 52.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003725/0.2351, allocations: 132.4 kB / 0.6524 GB, free: 52.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.345e-05/0.2351, allocations: 58.73 kB / 0.6524 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 1.447e-05/0.2351, allocations: 2.219 kB / 0.6524 GB, free: 52.03 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.2352, allocations: 12.23 kB / 0.6524 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of SimCode: time 8.11e-07/0.2352, allocations: 1.188 kB / 0.6524 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01428/0.2494, allocations: 1.968 MB / 0.6543 GB, free: 51.26 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.276/7.525, allocations: 11.55 kB / 0.6544 GB, free: 51.26 MB / 0.5573 GB " [Timeout remaining time 652] (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: 10.025465555489063] Failed to read output from testmodel.py, exit status != 0: 7.610324883833528 7.619672409 7.38539276 Calling exit ...