Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0018/0.0018, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.002203/0.002203, allocations: 215 kB / 21.45 MB, free: 1.617 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.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2282/0.2282, allocations: 46.93 MB / 357.8 MB, free: 10.32 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+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_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 71.91 kB / 0.4916 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.126, allocations: 65.99 MB / 0.5561 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03571/0.1617, allocations: 28.42 MB / 0.5838 GB, free: 9.324 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2546/0.4163, allocations: 13.33 MB / 0.5968 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003529/0.4166, allocations: 15.62 kB / 0.5968 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007047/0.4173, allocations: 250 kB / 0.5971 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009351/0.4267, allocations: 3.673 MB / 0.6007 GB, free: 3.711 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006139/0.4328, allocations: 2.378 MB / 0.603 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001373/0.4342, allocations: 0.8956 MB / 0.6039 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003977/0.4346, allocations: 218.6 kB / 0.6041 GB, free: 3.641 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008352/0.4354, allocations: 450.8 kB / 0.6045 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000388/0.4358, allocations: 280.2 kB / 0.6048 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.588e-05/0.4359, allocations: 32.72 kB / 0.6048 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01633/0.4522, allocations: 7.258 MB / 0.6119 GB, free: 3.566 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.4524, allocations: 108.1 kB / 0.612 GB, free: 3.547 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004206/0.4528, allocations: 215.3 kB / 0.6122 GB, free: 3.492 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01314/0.466, allocations: 4.424 MB / 0.6165 GB, free: 2.379 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.466, allocations: 4 kB / 0.6165 GB, free: 2.375 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.466, allocations: 3.188 kB / 0.6165 GB, free: 2.375 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.466, allocations: 0 / 0.6165 GB, free: 2.375 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.004455/0.4705, allocations: 1.265 MB / 0.6178 GB, free: 1.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.4705, allocations: 10.59 kB / 0.6178 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.337e-05/0.4705, allocations: 18.62 kB / 0.6178 GB, free: 1.512 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.044e-05/0.4706, allocations: 67.28 kB / 0.6179 GB, free: 1.465 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001808/0.4724, allocations: 214.3 kB / 0.6181 GB, free: 1.391 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005781/0.473, allocations: 379.6 kB / 0.6184 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.473, allocations: 25.72 kB / 0.6184 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.4731, allocations: 33.59 kB / 0.6185 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.4746, allocations: 0.5744 MB / 0.619 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.4746, allocations: 1.062 kB / 0.619 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.247e-05/0.4747, allocations: 16.41 kB / 0.6191 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.4747, allocations: 11.09 kB / 0.6191 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.4762, allocations: 0.5297 MB / 0.6196 GB, free: 0.6953 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.003245/0.4795, allocations: 2.622 MB / 0.6221 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.4812, allocations: 439.9 kB / 0.6226 GB, free: 14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.4816, allocations: 183.8 kB / 0.6227 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0568/0.5384, allocations: 26.88 MB / 0.649 GB, free: 5.836 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.5385, allocations: 34.55 kB / 0.649 GB, free: 5.793 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.575e-06/0.5385, allocations: 0 / 0.649 GB, free: 5.793 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003044/0.5415, allocations: 0.7981 MB / 0.6498 GB, free: 4.988 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.098e-05/0.5416, allocations: 106.8 kB / 0.6499 GB, free: 4.859 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.542, allocations: 300.6 kB / 0.6502 GB, free: 4.559 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.5421, allocations: 33.7 kB / 0.6502 GB, free: 4.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.5423, allocations: 212.5 kB / 0.6504 GB, free: 4.309 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.5423, allocations: 93.8 kB / 0.6505 GB, free: 4.219 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.5425, allocations: 65.69 kB / 0.6506 GB, free: 4.148 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.5427, allocations: 342.8 kB / 0.6509 GB, free: 3.805 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/0.5431, allocations: 133.4 kB / 0.651 GB, free: 3.676 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005132/0.5436, allocations: 244.2 kB / 0.6513 GB, free: 3.398 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/0.5445, allocations: 358.6 kB / 0.6516 GB, free: 3.016 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5445, allocations: 0 / 0.6516 GB, free: 3.016 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.5456, allocations: 437.2 kB / 0.652 GB, free: 2.582 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.5456, allocations: 8 kB / 0.652 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.5456, allocations: 0 / 0.652 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.5456, allocations: 11.88 kB / 0.652 GB, free: 2.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003505/0.546, allocations: 83.88 kB / 0.6521 GB, free: 2.48 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.546, allocations: 4 kB / 0.6521 GB, free: 2.477 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.5463, allocations: 39.77 kB / 0.6522 GB, free: 2.438 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.5464, allocations: 20.05 kB / 0.6522 GB, free: 2.418 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.0002393/0.5466, allocations: 157.8 kB / 0.6523 GB, free: 2.254 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.5467, allocations: 39.75 kB / 0.6524 GB, free: 2.215 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/0.5494, allocations: 1.901 MB / 0.6542 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.707e-05/0.5495, allocations: 27.95 kB / 0.6543 GB, free: 288 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5495, allocations: 0 / 0.6543 GB, free: 288 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.5495, allocations: 3.984 kB / 0.6543 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.5508, allocations: 1.021 MB / 0.6553 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.5508, allocations: 4 kB / 0.6553 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.5511, allocations: 68.56 kB / 0.6553 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.5511, allocations: 0 / 0.6553 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.5512, allocations: 15.94 kB / 0.6553 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.5512, allocations: 0 / 0.6553 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5512, allocations: 1.375 kB / 0.6553 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.5529, allocations: 1.081 MB / 0.6564 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.5531, allocations: 168.2 kB / 0.6566 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/0.5532, allocations: 27.78 kB / 0.6566 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000278/0.5534, allocations: 27.97 kB / 0.6566 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5535, allocations: 31.95 kB / 0.6566 GB, free: 13.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.5536, allocations: 15.98 kB / 0.6567 GB, free: 13.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003984/0.554, allocations: 323.1 kB / 0.657 GB, free: 13.43 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.554, allocations: 0 / 0.657 GB, free: 13.43 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004213/0.5582, allocations: 1.018 MB / 0.658 GB, free: 12.41 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.008007/0.5662, allocations: 2.695 MB / 0.6606 GB, free: 9.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.5676, allocations: 0.5871 MB / 0.6612 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5676, allocations: 0 / 0.6612 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006858/0.5683, allocations: 406.5 kB / 0.6616 GB, free: 8.812 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00127/0.5696, allocations: 213.8 kB / 0.6618 GB, free: 8.609 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009398/0.579, allocations: 4.975 MB / 0.6666 GB, free: 3.496 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/0.5796, allocations: 0.9677 MB / 0.6676 GB, free: 2.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005029/0.5801, allocations: 276.9 kB / 0.6678 GB, free: 2.238 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.5805, allocations: 255.3 kB / 0.6681 GB, free: 1.988 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5805, allocations: 0 / 0.6681 GB, free: 1.988 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0886/0.6691, allocations: 46.71 MB / 0.7137 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.61, allocations: 18.73 kB / 0.7137 GB, free: 3.445 MB / 0.5294 GB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.87484437803505] 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.778742188995238 12.799477296 12.330412082 Calling exit ...