Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001308/0.001308, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001463/0.001463, allocations: 214.1 kB / 24.52 MB, free: 3.941 MB / 14.72 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 1.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2158/0.2158, allocations: 44.94 MB / 359.6 MB, free: 6.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.001977/0.001977, allocations: 64.19 kB / 0.4938 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3129, allocations: 65.48 MB / 0.5577 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03177/0.3447, allocations: 25.88 MB / 0.583 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01667/0.3613, allocations: 11.75 MB / 0.5945 GB, free: 1.75 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004106/0.3618, allocations: 15.88 kB / 0.5945 GB, free: 1.734 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007809/0.3625, allocations: 230.5 kB / 0.5947 GB, free: 1.508 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00925/0.3718, allocations: 3.653 MB / 0.5983 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006137/0.3779, allocations: 2.356 MB / 0.6006 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.3792, allocations: 0.908 MB / 0.6015 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004024/0.3796, allocations: 208.9 kB / 0.6017 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008344/0.3805, allocations: 446.2 kB / 0.6021 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.3809, allocations: 278.9 kB / 0.6024 GB, free: 9.672 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.381, allocations: 36 kB / 0.6024 GB, free: 9.637 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01375/0.3947, allocations: 7.192 MB / 0.6094 GB, free: 2.438 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001996/0.3949, allocations: 99.66 kB / 0.6095 GB, free: 2.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000297/0.3952, allocations: 183.2 kB / 0.6097 GB, free: 2.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009806/0.405, allocations: 4.42 MB / 0.614 GB, free: 13.73 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.405, allocations: 4 kB / 0.614 GB, free: 13.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.405, allocations: 4 kB / 0.614 GB, free: 13.72 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.405, allocations: 0 / 0.614 GB, free: 13.72 MB / 462.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.003088/0.4081, allocations: 1.184 MB / 0.6152 GB, free: 12.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.4081, allocations: 12.03 kB / 0.6152 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.039e-05/0.4082, allocations: 8.844 kB / 0.6152 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.872e-05/0.4082, allocations: 66.72 kB / 0.6153 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.41, allocations: 216.5 kB / 0.6155 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005899/0.4106, allocations: 305.3 kB / 0.6157 GB, free: 11.87 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.225e-05/0.4106, allocations: 33.03 kB / 0.6158 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.4107, allocations: 35.86 kB / 0.6158 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.4124, allocations: 0.7253 MB / 0.6165 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.4124, allocations: 4 kB / 0.6165 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.393e-05/0.4124, allocations: 16 kB / 0.6165 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.4124, allocations: 8 kB / 0.6166 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.4141, allocations: 0.5253 MB / 0.6171 GB, free: 10.45 MB / 462.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.002921/0.417, allocations: 1.918 MB / 0.6189 GB, free: 8.445 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.4186, allocations: 446.1 kB / 0.6194 GB, free: 8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004421/0.419, allocations: 172.7 kB / 0.6195 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0457/0.4647, allocations: 13.21 MB / 0.6324 GB, free: 10.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.4648, allocations: 34.56 kB / 0.6325 GB, free: 10.56 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.934e-06/0.4648, allocations: 0 / 0.6325 GB, free: 10.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002927/0.4677, allocations: 0.7897 MB / 0.6332 GB, free: 9.762 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.452e-05/0.4678, allocations: 110.8 kB / 0.6333 GB, free: 9.629 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003822/0.4682, allocations: 312.5 kB / 0.6336 GB, free: 9.316 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.4682, allocations: 33.7 kB / 0.6337 GB, free: 9.277 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.4684, allocations: 204.5 kB / 0.6339 GB, free: 9.074 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.982e-05/0.4685, allocations: 83.27 kB / 0.6339 GB, free: 8.992 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.4686, allocations: 73.64 kB / 0.634 GB, free: 8.914 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.4688, allocations: 342.8 kB / 0.6343 GB, free: 8.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.4692, allocations: 143.8 kB / 0.6345 GB, free: 8.43 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005192/0.4697, allocations: 283.3 kB / 0.6347 GB, free: 8.102 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008483/0.4705, allocations: 362 kB / 0.6351 GB, free: 7.715 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.4705, allocations: 0 / 0.6351 GB, free: 7.715 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001054/0.4716, allocations: 425.2 kB / 0.6355 GB, free: 7.293 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.4716, allocations: 8.062 kB / 0.6355 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.4716, allocations: 7.938 kB / 0.6355 GB, free: 7.277 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.4716, allocations: 4 kB / 0.6355 GB, free: 7.273 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.472, allocations: 79.88 kB / 0.6356 GB, free: 7.195 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.472, allocations: 7.984 kB / 0.6356 GB, free: 7.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002808/0.4723, allocations: 51.75 kB / 0.6356 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.4723, allocations: 16 kB / 0.6357 GB, free: 7.121 MB / 478.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.0002319/0.4725, allocations: 161.8 kB / 0.6358 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.4726, allocations: 35.77 kB / 0.6358 GB, free: 6.918 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002721/0.4754, allocations: 1.976 MB / 0.6378 GB, free: 4.934 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.806e-05/0.4754, allocations: 31.94 kB / 0.6378 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.4754, allocations: 0 / 0.6378 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4754, allocations: 0 / 0.6378 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.4765, allocations: 0.9604 MB / 0.6387 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.4765, allocations: 0 / 0.6387 GB, free: 3.895 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.4769, allocations: 75.88 kB / 0.6388 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.4769, allocations: 0 / 0.6388 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.4769, allocations: 15.92 kB / 0.6388 GB, free: 3.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4769, allocations: 3.938 kB / 0.6388 GB, free: 3.801 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4769, allocations: 0 / 0.6388 GB, free: 3.801 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.4785, allocations: 1.116 MB / 0.6399 GB, free: 2.664 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.4786, allocations: 91.08 kB / 0.64 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.987e-05/0.4787, allocations: 31.78 kB / 0.64 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.479, allocations: 23.97 kB / 0.6401 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.4791, allocations: 31.94 kB / 0.6401 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.4791, allocations: 12 kB / 0.6401 GB, free: 2.477 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003979/0.4795, allocations: 327.1 kB / 0.6404 GB, free: 2.16 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4795, allocations: 0 / 0.6404 GB, free: 2.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002659/0.4822, allocations: 1.014 MB / 0.6414 GB, free: 1.145 MB / 478.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.006232/0.4884, allocations: 2.737 MB / 0.6441 GB, free: 14.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.4897, allocations: 0.595 MB / 0.6447 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4897, allocations: 0 / 0.6447 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00067/0.4904, allocations: 417 kB / 0.6451 GB, free: 13.38 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.4916, allocations: 215.2 kB / 0.6453 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008381/0.4999, allocations: 5.006 MB / 0.6502 GB, free: 8.016 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.5003, allocations: 370.2 kB / 0.6505 GB, free: 7.625 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004952/0.5008, allocations: 274.9 kB / 0.6508 GB, free: 7.359 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/0.5012, allocations: 259.3 kB / 0.651 GB, free: 7.105 MB / 494.1 MB Notification: Performance of SimCode: time 6.42e-07/0.5012, allocations: 0 / 0.651 GB, free: 7.105 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08856/0.5897, allocations: 47.83 MB / 0.6977 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/15.67, allocations: 18.45 kB / 0.6977 GB, free: 7.523 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.70551704999525] 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.864785265992396 15.882116549000001 15.473669506 Calling exit ...