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.001409/0.001409, allocations: 116.9 kB / 18.49 MB, free: 4.535 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.001501/0.001501, allocations: 220.7 kB / 21.46 MB, free: 1.582 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.449/1.449, allocations: 230.4 MB / 254.7 MB, free: 15.19 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.2212/0.2212, allocations: 46.91 MB / 357.7 MB, free: 10.21 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.002334/0.002334, allocations: 87.86 kB / 0.4917 GB, free: 7.832 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1194, allocations: 66.04 MB / 0.5562 GB, free: 5.664 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03352/0.1529, allocations: 28.42 MB / 0.5839 GB, free: 9.125 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2579/0.4108, allocations: 13.33 MB / 0.5969 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003892/0.4112, allocations: 15.56 kB / 0.5969 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007167/0.4119, allocations: 255.2 kB / 0.5972 GB, free: 3.727 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009858/0.4218, allocations: 3.672 MB / 0.6008 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006479/0.4283, allocations: 2.374 MB / 0.6031 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001443/0.4297, allocations: 0.8962 MB / 0.604 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004958/0.4302, allocations: 215.4 kB / 0.6042 GB, free: 3.625 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.4312, allocations: 455.2 kB / 0.6046 GB, free: 3.621 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.4317, allocations: 282.2 kB / 0.6049 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.373e-05/0.4318, allocations: 33.28 kB / 0.6049 GB, free: 3.605 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01616/0.448, allocations: 7.253 MB / 0.612 GB, free: 3.539 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.4482, allocations: 102.6 kB / 0.6121 GB, free: 3.523 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004458/0.4486, allocations: 218.5 kB / 0.6123 GB, free: 3.469 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.4606, allocations: 4.43 MB / 0.6166 GB, free: 2.312 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4606, allocations: 0 / 0.6166 GB, free: 2.312 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4606, allocations: 0 / 0.6166 GB, free: 2.312 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.4606, allocations: 5.125 kB / 0.6166 GB, free: 2.309 MB / 446.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.003764/0.4644, allocations: 1.265 MB / 0.6179 GB, free: 1.449 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4645, allocations: 12.22 kB / 0.6179 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.848e-05/0.4645, allocations: 9.094 kB / 0.6179 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.175e-05/0.4645, allocations: 69.81 kB / 0.6179 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.4663, allocations: 220.7 kB / 0.6182 GB, free: 1.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.4668, allocations: 381.8 kB / 0.6185 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.4669, allocations: 28.56 kB / 0.6185 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.074e-05/0.4669, allocations: 32.06 kB / 0.6186 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4684, allocations: 0.5786 MB / 0.6191 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.4684, allocations: 0 / 0.6191 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.4685, allocations: 13.55 kB / 0.6192 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.4685, allocations: 7.875 kB / 0.6192 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.4701, allocations: 0.5285 MB / 0.6197 GB, free: 0.6016 MB / 446.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.003087/0.4731, allocations: 2.628 MB / 0.6222 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.4748, allocations: 437.5 kB / 0.6227 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004413/0.4752, allocations: 179.7 kB / 0.6228 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05503/0.5302, allocations: 26.88 MB / 0.6491 GB, free: 5.633 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.5303, allocations: 38.56 kB / 0.6491 GB, free: 5.586 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.5303, allocations: 0 / 0.6491 GB, free: 5.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003217/0.5335, allocations: 0.7944 MB / 0.6499 GB, free: 4.785 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.237e-05/0.5336, allocations: 106.8 kB / 0.65 GB, free: 4.656 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.534, allocations: 304.5 kB / 0.6503 GB, free: 4.352 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.534, allocations: 33.7 kB / 0.6503 GB, free: 4.312 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.5342, allocations: 216.2 kB / 0.6505 GB, free: 4.102 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.25e-05/0.5343, allocations: 83.22 kB / 0.6506 GB, free: 4.02 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.5344, allocations: 77.47 kB / 0.6507 GB, free: 3.941 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.5346, allocations: 342.8 kB / 0.651 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004533/0.535, allocations: 137.4 kB / 0.6511 GB, free: 3.465 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.5356, allocations: 241.3 kB / 0.6514 GB, free: 3.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.5366, allocations: 361.9 kB / 0.6517 GB, free: 2.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.5366, allocations: 0 / 0.6517 GB, free: 2.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001308/0.5379, allocations: 428.9 kB / 0.6521 GB, free: 2.383 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.538, allocations: 10.03 kB / 0.6521 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.538, allocations: 8 kB / 0.6521 GB, free: 2.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.538, allocations: 11.88 kB / 0.6521 GB, free: 2.355 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003455/0.5383, allocations: 79.88 kB / 0.6522 GB, free: 2.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.5384, allocations: 4 kB / 0.6522 GB, free: 2.273 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.5387, allocations: 47.75 kB / 0.6523 GB, free: 2.227 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.5387, allocations: 12 kB / 0.6523 GB, free: 2.215 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.0002268/0.5389, allocations: 165.8 kB / 0.6524 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.906e-05/0.539, allocations: 35.77 kB / 0.6525 GB, free: 2.008 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002961/0.542, allocations: 1.891 MB / 0.6543 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.664e-05/0.542, allocations: 27.95 kB / 0.6544 GB, free: 84 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.5421, allocations: 7.938 kB / 0.6544 GB, free: 80 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.5421, allocations: 3.984 kB / 0.6544 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.5434, allocations: 1.017 MB / 0.6554 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.5434, allocations: 0 / 0.6554 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/0.5438, allocations: 71.88 kB / 0.6554 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.5438, allocations: 0 / 0.6554 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.5438, allocations: 11.94 kB / 0.6554 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.5439, allocations: 4 kB / 0.6554 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5439, allocations: 0 / 0.6554 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.5457, allocations: 1.081 MB / 0.6565 GB, free: 13.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.546, allocations: 180.1 kB / 0.6567 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.841e-05/0.546, allocations: 23.78 kB / 0.6567 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.5463, allocations: 19.98 kB / 0.6567 GB, free: 13.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.5464, allocations: 35.95 kB / 0.6567 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.5465, allocations: 15.98 kB / 0.6568 GB, free: 13.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004075/0.5469, allocations: 327.1 kB / 0.6571 GB, free: 13.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5469, allocations: 0 / 0.6571 GB, free: 13.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004595/0.5515, allocations: 1.014 MB / 0.6581 GB, free: 12.21 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.009671/0.5611, allocations: 2.697 MB / 0.6607 GB, free: 9.594 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.5626, allocations: 0.5832 MB / 0.6613 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5626, allocations: 0 / 0.6613 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006898/0.5632, allocations: 406.5 kB / 0.6617 GB, free: 8.613 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.5645, allocations: 215.6 kB / 0.6619 GB, free: 8.406 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/0.5745, allocations: 4.968 MB / 0.6667 GB, free: 3.301 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006831/0.5752, allocations: 0.9599 MB / 0.6676 GB, free: 2.312 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005123/0.5757, allocations: 280.7 kB / 0.6679 GB, free: 2.043 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003417/0.5761, allocations: 255.3 kB / 0.6682 GB, free: 1.793 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5761, allocations: 0 / 0.6682 GB, free: 1.793 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08467/0.6607, allocations: 46.7 MB / 0.7138 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/12.01, allocations: 12 kB / 0.7138 GB, free: 3.215 MB / 0.5294 GB " [Timeout remaining time 648] (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: 15.057228356017731] 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.165630553965457 12.193023022 11.727923814 Calling exit ...