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.001624/0.001624, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.00211/0.00211, allocations: 212.3 kB / 24.54 MB, free: 4.02 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.458/1.458, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.2284/0.2284, allocations: 46.95 MB / 361.6 MB, free: 4.184 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.002327/0.002327, allocations: 83.88 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3162, allocations: 66.09 MB / 0.5615 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03317/0.3494, allocations: 28.65 MB / 0.5895 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.3665, allocations: 13.38 MB / 0.6026 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.3668, allocations: 11.88 kB / 0.6026 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007117/0.3675, allocations: 262.3 kB / 0.6028 GB, free: 9.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009066/0.3766, allocations: 3.669 MB / 0.6064 GB, free: 6.172 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006277/0.3829, allocations: 2.391 MB / 0.6087 GB, free: 3.781 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.3842, allocations: 0.9042 MB / 0.6096 GB, free: 2.875 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004151/0.3846, allocations: 220.9 kB / 0.6098 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008814/0.3855, allocations: 458.2 kB / 0.6103 GB, free: 2.203 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004004/0.3859, allocations: 278.8 kB / 0.6105 GB, free: 1.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.468e-05/0.386, allocations: 32 kB / 0.6106 GB, free: 1.898 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01462/0.4006, allocations: 7.262 MB / 0.6177 GB, free: 10.62 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.4008, allocations: 107.7 kB / 0.6178 GB, free: 10.52 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003454/0.4012, allocations: 219.1 kB / 0.618 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.4115, allocations: 4.427 MB / 0.6223 GB, free: 5.867 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.405e-06/0.4115, allocations: 3.984 kB / 0.6223 GB, free: 5.863 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4115, allocations: 7.938 kB / 0.6223 GB, free: 5.855 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.4115, allocations: 0 / 0.6223 GB, free: 5.855 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.003184/0.4147, allocations: 1.192 MB / 0.6235 GB, free: 4.629 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4147, allocations: 8.031 kB / 0.6235 GB, free: 4.621 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.424e-05/0.4148, allocations: 62.73 kB / 0.6235 GB, free: 4.551 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001731/0.4165, allocations: 216.5 kB / 0.6237 GB, free: 4.34 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.4171, allocations: 317.2 kB / 0.624 GB, free: 4 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/0.4172, allocations: 29.03 kB / 0.6241 GB, free: 3.973 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.4172, allocations: 32.12 kB / 0.6241 GB, free: 3.941 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.4188, allocations: 0.5785 MB / 0.6247 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.4188, allocations: 0 / 0.6247 GB, free: 3.324 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.4189, allocations: 12 kB / 0.6247 GB, free: 3.312 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.4189, allocations: 8 kB / 0.6247 GB, free: 3.305 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.4205, allocations: 0.5332 MB / 0.6252 GB, free: 2.77 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.003205/0.4237, allocations: 2.527 MB / 0.6277 GB, free: 32 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/0.4253, allocations: 442.2 kB / 0.6281 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.4257, allocations: 177.6 kB / 0.6283 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04389/0.4696, allocations: 13.15 MB / 0.6411 GB, free: 2.246 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.4696, allocations: 38.56 kB / 0.6411 GB, free: 2.199 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.4697, allocations: 0 / 0.6411 GB, free: 2.199 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002866/0.4725, allocations: 0.7974 MB / 0.6419 GB, free: 1.395 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.4726, allocations: 106.8 kB / 0.642 GB, free: 1.266 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.473, allocations: 308.5 kB / 0.6423 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.473, allocations: 29.7 kB / 0.6423 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.4732, allocations: 212.5 kB / 0.6425 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/0.4733, allocations: 87.2 kB / 0.6426 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.4734, allocations: 69.69 kB / 0.6427 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4736, allocations: 346.8 kB / 0.643 GB, free: 212 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003828/0.474, allocations: 135.9 kB / 0.6432 GB, free: 76 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004992/0.4745, allocations: 235.7 kB / 0.6434 GB, free: 15.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008089/0.4753, allocations: 357.1 kB / 0.6437 GB, free: 15.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.4753, allocations: 0 / 0.6437 GB, free: 15.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001022/0.4763, allocations: 433.8 kB / 0.6441 GB, free: 14.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4763, allocations: 4 kB / 0.6441 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.4763, allocations: 8.312 kB / 0.6441 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.4763, allocations: 7.938 kB / 0.6442 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.4767, allocations: 75.89 kB / 0.6442 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.4767, allocations: 7.984 kB / 0.6442 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.477, allocations: 43.77 kB / 0.6443 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.477, allocations: 19.98 kB / 0.6443 GB, free: 14.83 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.0002013/0.4772, allocations: 158 kB / 0.6444 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.086e-05/0.4773, allocations: 35.77 kB / 0.6445 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.48, allocations: 1.983 MB / 0.6464 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-05/0.48, allocations: 27.95 kB / 0.6464 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.48, allocations: 0 / 0.6464 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.48, allocations: 3.984 kB / 0.6464 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.4811, allocations: 1.011 MB / 0.6474 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4811, allocations: 0 / 0.6474 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.4814, allocations: 75.86 kB / 0.6475 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4814, allocations: 0 / 0.6475 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/0.4814, allocations: 15.94 kB / 0.6475 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4814, allocations: 7.875 kB / 0.6475 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4814, allocations: 0 / 0.6475 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.483, allocations: 1.116 MB / 0.6486 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.4831, allocations: 91.16 kB / 0.6487 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.492e-05/0.4832, allocations: 23.78 kB / 0.6487 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.4834, allocations: 23.97 kB / 0.6488 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.467e-05/0.4835, allocations: 31.94 kB / 0.6488 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.4836, allocations: 16 kB / 0.6488 GB, free: 10.13 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003764/0.4839, allocations: 335 kB / 0.6491 GB, free: 9.801 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4839, allocations: 0 / 0.6491 GB, free: 9.801 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002584/0.4865, allocations: 1.006 MB / 0.6501 GB, free: 8.793 MB / 494.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.006209/0.4927, allocations: 2.725 MB / 0.6528 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.4941, allocations: 0.5911 MB / 0.6533 GB, free: 5.445 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4941, allocations: 4 kB / 0.6533 GB, free: 5.441 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00066/0.4948, allocations: 421 kB / 0.6537 GB, free: 5.027 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.4959, allocations: 211.9 kB / 0.6539 GB, free: 4.828 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009074/0.505, allocations: 5.005 MB / 0.6588 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/0.5057, allocations: 0.9677 MB / 0.6598 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005752/0.5063, allocations: 274.8 kB / 0.66 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/0.5067, allocations: 263.3 kB / 0.6603 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of SimCode: time 1.032e-06/0.5067, allocations: 0 / 0.6603 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09023/0.5969, allocations: 47.5 MB / 0.7067 GB, free: 14.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.8, allocations: 17.39 kB / 0.7067 GB, free: 14.72 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.647341785952449] 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'] 11.903489062096924 11.931032559 11.514302791 Calling exit ...