Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.001817/0.001817, allocations: 109 kB / 20.48 MB, free: 1.477 MB / 14.72 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.002364/0.002364, allocations: 208.8 kB / 23.78 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 207.6 MB / 234.5 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2164/0.2164, allocations: 44.24 MB / 331.1 MB, free: 9.598 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 67.91 kB / 468.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1159, allocations: 61.04 MB / 0.5169 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.242/0.3579, allocations: 28.5 MB / 0.5447 GB, free: 9.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.3724, allocations: 13.39 MB / 0.5578 GB, free: 7.035 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.3727, allocations: 13.53 kB / 0.5578 GB, free: 7.027 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000676/0.3734, allocations: 250.4 kB / 0.5581 GB, free: 6.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009646/0.383, allocations: 3.671 MB / 0.5617 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006561/0.3896, allocations: 2.382 MB / 0.564 GB, free: 5.082 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.3908, allocations: 0.9005 MB / 0.5649 GB, free: 4.656 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.3911, allocations: 212.2 kB / 0.5651 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000756/0.3919, allocations: 456.9 kB / 0.5655 GB, free: 4.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00037/0.3923, allocations: 280.1 kB / 0.5658 GB, free: 4.238 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.646e-05/0.3923, allocations: 32.44 kB / 0.5658 GB, free: 4.238 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01493/0.4073, allocations: 7.252 MB / 0.5729 GB, free: 1.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.4075, allocations: 105 kB / 0.573 GB, free: 1.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003362/0.4078, allocations: 220.5 kB / 0.5732 GB, free: 1.457 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.4189, allocations: 4.41 MB / 0.5775 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4189, allocations: 0 / 0.5775 GB, free: 14.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4189, allocations: 0 / 0.5775 GB, free: 14.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.4189, allocations: 0 / 0.5775 GB, free: 14.64 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004331/0.4232, allocations: 1.198 MB / 0.5787 GB, free: 13.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.4233, allocations: 14.14 kB / 0.5787 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.297e-05/0.4233, allocations: 8.156 kB / 0.5787 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.4234, allocations: 60.45 kB / 0.5787 GB, free: 13.73 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00175/0.4251, allocations: 218.8 kB / 0.579 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006717/0.4258, allocations: 318.6 kB / 0.5793 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.4258, allocations: 27.56 kB / 0.5793 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.186e-05/0.4259, allocations: 34.69 kB / 0.5793 GB, free: 13.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.4275, allocations: 0.5825 MB / 0.5799 GB, free: 12.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4275, allocations: 5.156 kB / 0.5799 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.4276, allocations: 12.56 kB / 0.5799 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.4276, allocations: 7.562 kB / 0.5799 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.4293, allocations: 0.5244 MB / 0.5804 GB, free: 12.69 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003455/0.4327, allocations: 2.512 MB / 0.5829 GB, free: 10.33 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.4343, allocations: 449.2 kB / 0.5833 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004371/0.4348, allocations: 179.6 kB / 0.5835 GB, free: 10.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04668/0.4814, allocations: 12.67 MB / 0.5959 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.4815, allocations: 34.5 kB / 0.5959 GB, free: 2.656 MB / 430.1 MB Notification: Performance of pre-optimization done (n=25): time 1.853e-06/0.4815, allocations: 3.938 kB / 0.5959 GB, free: 2.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=25): time 0.003053/0.4845, allocations: 0.8013 MB / 0.5967 GB, free: 1.844 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/0.4846, allocations: 106.8 kB / 0.5968 GB, free: 1.715 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.485, allocations: 308.5 kB / 0.5971 GB, free: 1.402 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.485, allocations: 33.7 kB / 0.5971 GB, free: 1.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.4852, allocations: 204.5 kB / 0.5973 GB, free: 1.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.97e-05/0.4853, allocations: 87.25 kB / 0.5974 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.4854, allocations: 69.69 kB / 0.5974 GB, free: 1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4856, allocations: 346.8 kB / 0.5978 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/0.486, allocations: 139.9 kB / 0.5979 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.4865, allocations: 238.8 kB / 0.5981 GB, free: 248 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009214/0.4875, allocations: 353.2 kB / 0.5985 GB, free: 15.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4875, allocations: 0 / 0.5985 GB, free: 15.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001108/0.4886, allocations: 429.8 kB / 0.5989 GB, free: 15.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.4886, allocations: 8 kB / 0.5989 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.4886, allocations: 0 / 0.5989 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4886, allocations: 7.938 kB / 0.5989 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.489, allocations: 88.19 kB / 0.599 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.489, allocations: 10.05 kB / 0.599 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003091/0.4893, allocations: 43.75 kB / 0.599 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.4893, allocations: 16 kB / 0.599 GB, free: 15.27 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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 0.0002136/0.4895, allocations: 173.5 kB / 0.5992 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/0.4896, allocations: 39.77 kB / 0.5993 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.4924, allocations: 1.96 MB / 0.6012 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-05/0.4925, allocations: 31.94 kB / 0.6012 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.4925, allocations: 0 / 0.6012 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.4925, allocations: 0 / 0.6012 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.4936, allocations: 1.02 MB / 0.6022 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4937, allocations: 0 / 0.6022 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.494, allocations: 67.88 kB / 0.6023 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.494, allocations: 4 kB / 0.6023 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.494, allocations: 12.83 kB / 0.6023 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.494, allocations: 4 kB / 0.6023 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.494, allocations: 2.938 kB / 0.6023 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.4958, allocations: 1.12 MB / 0.6034 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.4959, allocations: 91.14 kB / 0.6035 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.496, allocations: 27.78 kB / 0.6035 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.4963, allocations: 19.98 kB / 0.6035 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-05/0.4964, allocations: 35.92 kB / 0.6035 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.4964, allocations: 12 kB / 0.6035 GB, free: 10.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000417/0.4968, allocations: 323.1 kB / 0.6039 GB, free: 10.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4968, allocations: 0 / 0.6039 GB, free: 10.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003812/0.5006, allocations: 1.006 MB / 0.6048 GB, free: 9.258 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.008215/0.5088, allocations: 2.726 MB / 0.6075 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.5102, allocations: 0.596 MB / 0.6081 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5102, allocations: 0.625 kB / 0.6081 GB, free: 5.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.5109, allocations: 425 kB / 0.6085 GB, free: 5.516 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.5122, allocations: 219.3 kB / 0.6087 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00962/0.5218, allocations: 5.011 MB / 0.6136 GB, free: 148 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006439/0.5224, allocations: 0.9677 MB / 0.6145 GB, free: 15.16 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005385/0.523, allocations: 271.8 kB / 0.6148 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.5233, allocations: 259.3 kB / 0.615 GB, free: 14.63 MB / 462.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5233, allocations: 0 / 0.615 GB, free: 14.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09033/0.6136, allocations: 47.58 MB / 0.6615 GB, free: 15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.65, allocations: 12 kB / 0.6615 GB, free: 14.99 MB / 0.4981 GB " [Timeout remaining time 644] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.714490969025064] Failed to read output from testmodel.py, exit status != 0: ['time', 'SourceP1.ports[1].m_flow', 'SourceP1.ports[1].p', 'SourceP1.ports[1].h_outflow', 'V1.port_b.m_flow', 'V1.port_b.p', 'V1.port_b.h_outflow', 'SinkP1.ports[1].m_flow', 'SinkP1.ports[1].p', 'SinkP1.ports[1].h_outflow', 'Opening.y', 'downstreamPressure.y'] 15.847174558963161 15.878174358 15.453193683 Calling exit ...