Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001829/0.001829, allocations: 104.3 kB / 20.48 MB, free: 1.383 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.002308/0.002308, allocations: 213.6 kB / 23.78 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 207.7 MB / 234.6 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2343/0.2343, allocations: 44.27 MB / 331.1 MB, free: 9.312 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 67.91 kB / 468.3 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1497, allocations: 61.04 MB / 0.5169 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.272/0.4217, allocations: 25.75 MB / 0.5421 GB, free: 9.695 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01459/0.4363, allocations: 11.76 MB / 0.5535 GB, free: 8.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/0.4367, allocations: 13.34 kB / 0.5536 GB, free: 8.664 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007713/0.4375, allocations: 224.1 kB / 0.5538 GB, free: 8.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01135/0.4489, allocations: 3.646 MB / 0.5573 GB, free: 7.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007459/0.4563, allocations: 2.345 MB / 0.5596 GB, free: 6.883 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001553/0.4579, allocations: 0.9013 MB / 0.5605 GB, free: 6.676 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004277/0.4583, allocations: 214 kB / 0.5607 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008286/0.4591, allocations: 433.9 kB / 0.5611 GB, free: 6.539 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.4595, allocations: 276.6 kB / 0.5614 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.519e-05/0.4596, allocations: 33.41 kB / 0.5614 GB, free: 6.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0169/0.4765, allocations: 7.186 MB / 0.5684 GB, free: 4.305 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.4767, allocations: 104.6 kB / 0.5685 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.4771, allocations: 186.4 kB / 0.5687 GB, free: 4.125 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01236/0.4894, allocations: 4.409 MB / 0.573 GB, free: 1.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.4894, allocations: 0 / 0.573 GB, free: 1.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4894, allocations: 1.094 kB / 0.573 GB, free: 1.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.4895, allocations: 0 / 0.573 GB, free: 1.32 MB / 414.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.004073/0.4935, allocations: 1.179 MB / 0.5742 GB, free: 496 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4936, allocations: 10.22 kB / 0.5742 GB, free: 496 kB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.239e-05/0.4936, allocations: 8.312 kB / 0.5742 GB, free: 496 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.229e-05/0.4937, allocations: 72.5 kB / 0.5742 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001736/0.4954, allocations: 214.4 kB / 0.5745 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.496, allocations: 319.3 kB / 0.5748 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.496, allocations: 26.84 kB / 0.5748 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.079e-05/0.4961, allocations: 30.72 kB / 0.5748 GB, free: 32 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.4978, allocations: 0.7327 MB / 0.5755 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4978, allocations: 3.062 kB / 0.5755 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.4979, allocations: 20.34 kB / 0.5755 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.4979, allocations: 11.91 kB / 0.5756 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.4996, allocations: 0.5275 MB / 0.5761 GB, free: 15.19 MB / 430.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.003092/0.5026, allocations: 1.905 MB / 0.5779 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.5043, allocations: 439.7 kB / 0.5784 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004511/0.5047, allocations: 174.9 kB / 0.5785 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04471/0.5494, allocations: 12.72 MB / 0.5909 GB, free: 6.738 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.5495, allocations: 35.88 kB / 0.591 GB, free: 6.695 MB / 430.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.5495, allocations: 0 / 0.591 GB, free: 6.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=25): time 0.003034/0.5525, allocations: 0.7974 MB / 0.5918 GB, free: 5.891 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.5526, allocations: 114.8 kB / 0.5919 GB, free: 5.754 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.553, allocations: 308.5 kB / 0.5922 GB, free: 5.449 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.5531, allocations: 33.7 kB / 0.5922 GB, free: 5.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.5532, allocations: 204.5 kB / 0.5924 GB, free: 5.207 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.584e-05/0.5533, allocations: 83.28 kB / 0.5925 GB, free: 5.125 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.5535, allocations: 69.69 kB / 0.5925 GB, free: 5.051 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.5536, allocations: 342.8 kB / 0.5929 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.554, allocations: 139.9 kB / 0.593 GB, free: 4.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.5546, allocations: 291.9 kB / 0.5933 GB, free: 4.238 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008343/0.5554, allocations: 357.1 kB / 0.5936 GB, free: 3.855 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5554, allocations: 0 / 0.5936 GB, free: 3.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001038/0.5564, allocations: 434 kB / 0.594 GB, free: 3.426 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.5564, allocations: 8.062 kB / 0.594 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5565, allocations: 4 kB / 0.594 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.5565, allocations: 7.938 kB / 0.594 GB, free: 3.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.5568, allocations: 75.89 kB / 0.5941 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.5568, allocations: 4 kB / 0.5941 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003247/0.5572, allocations: 47.81 kB / 0.5942 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.5572, allocations: 15.98 kB / 0.5942 GB, free: 3.266 MB / 430.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.0002195/0.5574, allocations: 165.7 kB / 0.5943 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-05/0.5575, allocations: 35.77 kB / 0.5944 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002711/0.5602, allocations: 1.972 MB / 0.5963 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/0.5602, allocations: 31.89 kB / 0.5963 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5602, allocations: 0 / 0.5963 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.5603, allocations: 0.8906 kB / 0.5963 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.5615, allocations: 0.972 MB / 0.5973 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.5615, allocations: 0 / 0.5973 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.5618, allocations: 71.88 kB / 0.5974 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5618, allocations: 0 / 0.5974 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.5619, allocations: 15.56 kB / 0.5974 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5619, allocations: 0 / 0.5974 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5619, allocations: 0 / 0.5974 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.5635, allocations: 1.12 MB / 0.5985 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001482/0.5637, allocations: 87.16 kB / 0.5985 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.933e-05/0.5638, allocations: 27.78 kB / 0.5986 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.564, allocations: 23.97 kB / 0.5986 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.5641, allocations: 33.02 kB / 0.5986 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.5642, allocations: 19.92 kB / 0.5986 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004034/0.5646, allocations: 323.1 kB / 0.5989 GB, free: 14.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5646, allocations: 0 / 0.5989 GB, free: 14.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004156/0.5687, allocations: 1.002 MB / 0.5999 GB, free: 13.3 MB / 446.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.008832/0.5776, allocations: 2.73 MB / 0.6026 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.579, allocations: 0.5961 MB / 0.6032 GB, free: 9.973 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.579, allocations: 0 / 0.6032 GB, free: 9.973 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006551/0.5797, allocations: 425.6 kB / 0.6036 GB, free: 9.555 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.5809, allocations: 210.1 kB / 0.6038 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/0.5912, allocations: 5.013 MB / 0.6087 GB, free: 4.191 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.5917, allocations: 374.2 kB / 0.609 GB, free: 3.801 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005708/0.5922, allocations: 284.4 kB / 0.6093 GB, free: 3.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.5926, allocations: 255.3 kB / 0.6095 GB, free: 3.281 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5926, allocations: 4 kB / 0.6096 GB, free: 3.277 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09347/0.6861, allocations: 47.78 MB / 0.6562 GB, free: 3.434 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.61, allocations: 16.05 kB / 0.6562 GB, free: 3.418 MB / 494.1 MB " [Timeout remaining time 644] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.766640888992697] 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'] 15.81526921200566 15.844119695 15.349380339 Calling exit ...