Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001211/0.001211, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001353/0.001353, allocations: 218.2 kB / 24.52 MB, free: 3.91 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.385/1.385, allocations: 230.5 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2145/0.2145, allocations: 46.95 MB / 361.6 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 75.88 kB / 0.4969 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3118, allocations: 66.07 MB / 0.5614 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02978/0.3415, allocations: 25.88 MB / 0.5867 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.3577, allocations: 11.76 MB / 0.5982 GB, free: 14.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004052/0.3581, allocations: 15.88 kB / 0.5982 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007608/0.3588, allocations: 230.5 kB / 0.5984 GB, free: 14.01 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009259/0.3681, allocations: 3.64 MB / 0.602 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006197/0.3743, allocations: 2.367 MB / 0.6043 GB, free: 8.004 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.3755, allocations: 0.9003 MB / 0.6052 GB, free: 7.102 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004383/0.3759, allocations: 216.8 kB / 0.6054 GB, free: 6.883 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008993/0.3768, allocations: 438.3 kB / 0.6058 GB, free: 6.453 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000536/0.3774, allocations: 282.8 kB / 0.6061 GB, free: 6.176 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.322e-05/0.3774, allocations: 39.94 kB / 0.6061 GB, free: 6.137 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01332/0.3908, allocations: 7.188 MB / 0.6131 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.391, allocations: 99.66 kB / 0.6132 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.3913, allocations: 187.2 kB / 0.6134 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009011/0.4003, allocations: 4.416 MB / 0.6177 GB, free: 10.23 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4003, allocations: 7.984 kB / 0.6177 GB, free: 10.22 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4003, allocations: 0 / 0.6177 GB, free: 10.22 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.4004, allocations: 0 / 0.6177 GB, free: 10.22 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.003113/0.4035, allocations: 1.188 MB / 0.6189 GB, free: 9 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4035, allocations: 12.03 kB / 0.6189 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.531e-05/0.4035, allocations: 8.844 kB / 0.6189 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.471e-05/0.4036, allocations: 62.73 kB / 0.619 GB, free: 8.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.4054, allocations: 220.4 kB / 0.6192 GB, free: 8.695 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005393/0.4059, allocations: 305.3 kB / 0.6195 GB, free: 8.367 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.406, allocations: 33.03 kB / 0.6195 GB, free: 8.336 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.406, allocations: 31.94 kB / 0.6195 GB, free: 8.305 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.4077, allocations: 0.7252 MB / 0.6202 GB, free: 7.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.4077, allocations: 3.938 kB / 0.6202 GB, free: 7.496 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/0.4078, allocations: 16 kB / 0.6203 GB, free: 7.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.4078, allocations: 12 kB / 0.6203 GB, free: 7.469 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.4094, allocations: 0.5215 MB / 0.6208 GB, free: 6.949 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.002846/0.4122, allocations: 1.918 MB / 0.6226 GB, free: 4.949 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.4138, allocations: 438.1 kB / 0.6231 GB, free: 4.512 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004236/0.4142, allocations: 176.7 kB / 0.6232 GB, free: 4.336 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04469/0.4589, allocations: 13.2 MB / 0.6361 GB, free: 7.113 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.29e-05/0.4589, allocations: 34.56 kB / 0.6362 GB, free: 7.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.4589, allocations: 3.938 kB / 0.6362 GB, free: 7.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002904/0.4618, allocations: 0.7936 MB / 0.6369 GB, free: 6.266 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.4619, allocations: 106.8 kB / 0.637 GB, free: 6.137 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.4623, allocations: 316.4 kB / 0.6373 GB, free: 5.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.4623, allocations: 33.7 kB / 0.6374 GB, free: 5.781 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.4625, allocations: 200.5 kB / 0.6376 GB, free: 5.582 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.82e-05/0.4626, allocations: 87.27 kB / 0.6376 GB, free: 5.496 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.4627, allocations: 73.64 kB / 0.6377 GB, free: 5.418 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4628, allocations: 342.8 kB / 0.638 GB, free: 5.074 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.4632, allocations: 139.9 kB / 0.6382 GB, free: 4.938 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/0.4637, allocations: 291.1 kB / 0.6385 GB, free: 4.602 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008241/0.4646, allocations: 357.1 kB / 0.6388 GB, free: 4.219 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4646, allocations: 4 kB / 0.6388 GB, free: 4.215 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001009/0.4656, allocations: 422.1 kB / 0.6392 GB, free: 3.797 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4656, allocations: 6.344 kB / 0.6392 GB, free: 3.793 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4656, allocations: 7.938 kB / 0.6392 GB, free: 3.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.4656, allocations: 4 kB / 0.6392 GB, free: 3.781 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.4659, allocations: 79.88 kB / 0.6393 GB, free: 3.703 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.466, allocations: 4 kB / 0.6393 GB, free: 3.699 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.4662, allocations: 51.75 kB / 0.6393 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.4663, allocations: 20.03 kB / 0.6394 GB, free: 3.629 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.0001802/0.4664, allocations: 161.9 kB / 0.6395 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.058e-05/0.4665, allocations: 35.77 kB / 0.6396 GB, free: 3.426 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.4691, allocations: 1.979 MB / 0.6415 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/0.4691, allocations: 31.94 kB / 0.6415 GB, free: 1.402 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.4691, allocations: 0 / 0.6415 GB, free: 1.402 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4692, allocations: 0 / 0.6415 GB, free: 1.402 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.4702, allocations: 0.9643 MB / 0.6425 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4702, allocations: 0 / 0.6425 GB, free: 400 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002964/0.4705, allocations: 71.88 kB / 0.6425 GB, free: 328 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.4705, allocations: 0 / 0.6425 GB, free: 328 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/0.4705, allocations: 15.92 kB / 0.6425 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4705, allocations: 0 / 0.6425 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.4705, allocations: 0 / 0.6425 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.4721, allocations: 1.112 MB / 0.6436 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.4722, allocations: 95.14 kB / 0.6437 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.4723, allocations: 27.78 kB / 0.6437 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002654/0.4725, allocations: 31.89 kB / 0.6438 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.799e-05/0.4726, allocations: 31.94 kB / 0.6438 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.4726, allocations: 12 kB / 0.6438 GB, free: 14.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003721/0.473, allocations: 323.1 kB / 0.6441 GB, free: 14.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.473, allocations: 4 kB / 0.6441 GB, free: 14.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002633/0.4756, allocations: 1.014 MB / 0.6451 GB, free: 13.64 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.006198/0.4818, allocations: 2.725 MB / 0.6478 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.483, allocations: 0.5948 MB / 0.6484 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.483, allocations: 0 / 0.6484 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006314/0.4836, allocations: 421 kB / 0.6488 GB, free: 9.879 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.4847, allocations: 217.6 kB / 0.649 GB, free: 9.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007746/0.4924, allocations: 5.009 MB / 0.6539 GB, free: 4.523 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.4927, allocations: 370.2 kB / 0.6542 GB, free: 4.133 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004408/0.4932, allocations: 278.7 kB / 0.6545 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.4935, allocations: 259.3 kB / 0.6547 GB, free: 3.609 MB / 494.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4935, allocations: 4 kB / 0.6547 GB, free: 3.605 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08165/0.5752, allocations: 47.82 MB / 0.7014 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.35, allocations: 15.94 kB / 0.7014 GB, free: 3.961 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.2688545769779] 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'] 14.537055923952721 14.553791902 14.149954892 Calling exit ...