Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 109.2 kB / 20.42 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, allocations: 218 kB / 23.72 MB, free: 5.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 230.2 MB / 257.1 MB, free: 8.488 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2279/0.2279, allocations: 46.88 MB / 360.3 MB, free: 4.645 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 79.88 kB / 0.4955 GB, free: 8.879 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3294, allocations: 65.97 MB / 0.56 GB, free: 34.01 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02482/0.3542, allocations: 28.65 MB / 0.5879 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0139/0.3681, allocations: 13.38 MB / 0.601 GB, free: 4.523 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.3685, allocations: 10.62 kB / 0.601 GB, free: 4.52 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000697/0.3692, allocations: 252.4 kB / 0.6013 GB, free: 4.371 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00981/0.379, allocations: 3.674 MB / 0.6048 GB, free: 2.895 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005616/0.3847, allocations: 2.379 MB / 0.6072 GB, free: 1.164 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.3857, allocations: 0.9021 MB / 0.608 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002845/0.386, allocations: 210.6 kB / 0.6082 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000611/0.3866, allocations: 452.9 kB / 0.6087 GB, free: 228 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.3869, allocations: 281.3 kB / 0.6089 GB, free: 60 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-05/0.3869, allocations: 37.44 kB / 0.609 GB, free: 56 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01497/0.4019, allocations: 7.24 MB / 0.6161 GB, free: 12.28 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.4021, allocations: 109.7 kB / 0.6162 GB, free: 12.2 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000337/0.4024, allocations: 220.9 kB / 0.6164 GB, free: 12.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.4134, allocations: 4.434 MB / 0.6207 GB, free: 9.004 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4134, allocations: 0 / 0.6207 GB, free: 9.004 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4134, allocations: 0 / 0.6207 GB, free: 9.004 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.4134, allocations: 0 / 0.6207 GB, free: 9.004 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.004532/0.418, allocations: 1.267 MB / 0.6219 GB, free: 7.684 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.418, allocations: 8.031 kB / 0.6219 GB, free: 7.676 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.4181, allocations: 70.67 kB / 0.622 GB, free: 7.598 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.4199, allocations: 212.5 kB / 0.6222 GB, free: 7.391 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.4205, allocations: 387.4 kB / 0.6226 GB, free: 6.973 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.141e-05/0.4205, allocations: 25.03 kB / 0.6226 GB, free: 6.949 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.4206, allocations: 32.12 kB / 0.6226 GB, free: 6.918 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.4223, allocations: 0.5784 MB / 0.6232 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.4223, allocations: 0 / 0.6232 GB, free: 6.297 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.4223, allocations: 16 kB / 0.6232 GB, free: 6.281 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.4224, allocations: 8 kB / 0.6232 GB, free: 6.273 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.424, allocations: 0.5328 MB / 0.6237 GB, free: 5.742 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.003448/0.4275, allocations: 2.613 MB / 0.6263 GB, free: 2.891 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.4291, allocations: 454.1 kB / 0.6267 GB, free: 2.438 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004601/0.4296, allocations: 176.7 kB / 0.6269 GB, free: 2.262 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0566/0.4862, allocations: 26.88 MB / 0.6531 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.447e-05/0.4862, allocations: 38.56 kB / 0.6532 GB, free: 3.926 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.265e-06/0.4862, allocations: 3.938 kB / 0.6532 GB, free: 3.922 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003001/0.4892, allocations: 0.7912 MB / 0.654 GB, free: 3.125 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.4893, allocations: 102.8 kB / 0.6541 GB, free: 3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.4897, allocations: 320.5 kB / 0.6544 GB, free: 2.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.11e-05/0.4897, allocations: 25.7 kB / 0.6544 GB, free: 2.648 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.4899, allocations: 212.5 kB / 0.6546 GB, free: 2.438 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.991e-05/0.49, allocations: 91.25 kB / 0.6547 GB, free: 2.348 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.4901, allocations: 69.64 kB / 0.6547 GB, free: 2.273 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4903, allocations: 342.8 kB / 0.6551 GB, free: 1.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.4907, allocations: 139.9 kB / 0.6552 GB, free: 1.793 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/0.4912, allocations: 231.8 kB / 0.6554 GB, free: 1.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008651/0.4921, allocations: 369.9 kB / 0.6558 GB, free: 1.133 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4921, allocations: 0 / 0.6558 GB, free: 1.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001086/0.4931, allocations: 417.1 kB / 0.6562 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4932, allocations: 4 kB / 0.6562 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.4932, allocations: 4 kB / 0.6562 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.4932, allocations: 7.938 kB / 0.6562 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.4935, allocations: 83.81 kB / 0.6563 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.4935, allocations: 4 kB / 0.6563 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.4938, allocations: 55.95 kB / 0.6563 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.4939, allocations: 16 kB / 0.6563 GB, free: 0.5469 MB / 494.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.0002086/0.4941, allocations: 157.8 kB / 0.6565 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.304e-05/0.4942, allocations: 31.81 kB / 0.6565 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.4968, allocations: 1.901 MB / 0.6584 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.571e-05/0.4968, allocations: 35.94 kB / 0.6584 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4969, allocations: 0 / 0.6584 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4969, allocations: 0 / 0.6584 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.498, allocations: 1.016 MB / 0.6594 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.498, allocations: 3.938 kB / 0.6594 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.4983, allocations: 67.94 kB / 0.6595 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.4983, allocations: 4 kB / 0.6595 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.4983, allocations: 15.92 kB / 0.6595 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.4983, allocations: 7.922 kB / 0.6595 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4983, allocations: 0 / 0.6595 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.4999, allocations: 1.085 MB / 0.6606 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/0.5001, allocations: 168.2 kB / 0.6607 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.139e-05/0.5002, allocations: 27.78 kB / 0.6607 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.5004, allocations: 27.97 kB / 0.6608 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.981e-05/0.5005, allocations: 27.95 kB / 0.6608 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.5005, allocations: 12 kB / 0.6608 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003798/0.5009, allocations: 327.1 kB / 0.6611 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.5009, allocations: 0 / 0.6611 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003642/0.5045, allocations: 1.006 MB / 0.6621 GB, free: 10.53 MB / 0.4981 GB 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.007658/0.5122, allocations: 2.719 MB / 0.6648 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001311/0.5135, allocations: 0.5827 MB / 0.6653 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.5135, allocations: 4 kB / 0.6653 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006432/0.5142, allocations: 407.1 kB / 0.6657 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.5153, allocations: 210 kB / 0.6659 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008893/0.5242, allocations: 4.982 MB / 0.6708 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005863/0.5248, allocations: 0.9638 MB / 0.6717 GB, free: 500 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004888/0.5253, allocations: 278 kB / 0.672 GB, free: 228 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/0.5256, allocations: 255.3 kB / 0.6722 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of SimCode: time 1.002e-06/0.5256, allocations: 8 kB / 0.6722 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0874/0.613, allocations: 46.8 MB / 0.718 GB, free: 1.246 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.12, allocations: 6.562 kB / 0.718 GB, free: 1.242 MB / 0.545 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.935730094090104] 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'] 12.233017085120082 12.259374193 11.841083603 Calling exit ...