Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002033/0.002033, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002093/0.002093, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.433/1.433, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2173/0.2173, allocations: 44.92 MB / 359.6 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002976/0.002976, allocations: 59.91 kB / 0.4939 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3747, allocations: 65.48 MB / 0.5578 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03386/0.4086, allocations: 28.65 MB / 0.5858 GB, free: 11.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01803/0.4266, allocations: 13.39 MB / 0.5989 GB, free: 13.58 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/0.427, allocations: 15.88 kB / 0.5989 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009054/0.4279, allocations: 254.4 kB / 0.5991 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00957/0.4375, allocations: 3.67 MB / 0.6027 GB, free: 9.641 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006293/0.4438, allocations: 2.395 MB / 0.605 GB, free: 7.25 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.4451, allocations: 0.908 MB / 0.6059 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.4455, allocations: 208.9 kB / 0.6061 GB, free: 6.129 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008644/0.4464, allocations: 458.2 kB / 0.6066 GB, free: 5.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004131/0.4468, allocations: 282.9 kB / 0.6068 GB, free: 5.402 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.538e-05/0.4468, allocations: 36 kB / 0.6069 GB, free: 5.367 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01532/0.4621, allocations: 7.258 MB / 0.6139 GB, free: 14.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.4623, allocations: 111.6 kB / 0.6141 GB, free: 13.99 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003338/0.4627, allocations: 223 kB / 0.6143 GB, free: 13.77 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009582/0.4723, allocations: 4.427 MB / 0.6186 GB, free: 9.332 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4723, allocations: 7.875 kB / 0.6186 GB, free: 9.324 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4723, allocations: 0 / 0.6186 GB, free: 9.324 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.4723, allocations: 0 / 0.6186 GB, free: 9.324 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.002994/0.4753, allocations: 1.184 MB / 0.6198 GB, free: 8.105 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.4753, allocations: 16.02 kB / 0.6198 GB, free: 8.09 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.153e-05/0.4753, allocations: 8.844 kB / 0.6198 GB, free: 8.082 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.516e-05/0.4754, allocations: 58.73 kB / 0.6198 GB, free: 8.016 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/0.4771, allocations: 216.5 kB / 0.62 GB, free: 7.805 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.4777, allocations: 317.2 kB / 0.6203 GB, free: 7.465 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.4777, allocations: 32.97 kB / 0.6204 GB, free: 7.434 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.594e-05/0.4778, allocations: 27.94 kB / 0.6204 GB, free: 7.406 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.4794, allocations: 0.5785 MB / 0.621 GB, free: 6.785 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4794, allocations: 8 kB / 0.621 GB, free: 6.777 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.4795, allocations: 12 kB / 0.621 GB, free: 6.766 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.4795, allocations: 11.98 kB / 0.621 GB, free: 6.754 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.4812, allocations: 0.5293 MB / 0.6215 GB, free: 6.227 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.003298/0.4845, allocations: 2.523 MB / 0.624 GB, free: 3.492 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.4861, allocations: 442.1 kB / 0.6244 GB, free: 3.051 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004593/0.4866, allocations: 176.7 kB / 0.6246 GB, free: 2.875 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04759/0.5341, allocations: 13.15 MB / 0.6374 GB, free: 5.707 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.5342, allocations: 30.56 kB / 0.6374 GB, free: 5.668 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.5342, allocations: 0 / 0.6374 GB, free: 5.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00293/0.5371, allocations: 0.7897 MB / 0.6382 GB, free: 4.871 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.509e-05/0.5372, allocations: 118.7 kB / 0.6383 GB, free: 4.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/0.5376, allocations: 304.5 kB / 0.6386 GB, free: 4.426 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.5376, allocations: 33.7 kB / 0.6386 GB, free: 4.387 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.5378, allocations: 212.5 kB / 0.6388 GB, free: 4.176 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/0.5379, allocations: 83.22 kB / 0.6389 GB, free: 4.094 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.538, allocations: 69.69 kB / 0.639 GB, free: 4.02 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5381, allocations: 346.8 kB / 0.6393 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.5386, allocations: 139.9 kB / 0.6395 GB, free: 3.535 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004934/0.539, allocations: 227.9 kB / 0.6397 GB, free: 3.273 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008584/0.5399, allocations: 357.9 kB / 0.64 GB, free: 2.891 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.5399, allocations: 0 / 0.64 GB, free: 2.891 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001065/0.541, allocations: 428.9 kB / 0.6404 GB, free: 2.465 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.541, allocations: 8 kB / 0.6404 GB, free: 2.457 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.541, allocations: 11.91 kB / 0.6404 GB, free: 2.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.541, allocations: 4 kB / 0.6404 GB, free: 2.441 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.5414, allocations: 79.89 kB / 0.6405 GB, free: 2.363 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.5414, allocations: 7.938 kB / 0.6405 GB, free: 2.355 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.5417, allocations: 52.06 kB / 0.6406 GB, free: 2.305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.313e-05/0.5417, allocations: 16 kB / 0.6406 GB, free: 2.289 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.0002094/0.5419, allocations: 157.8 kB / 0.6407 GB, free: 2.125 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.577e-05/0.542, allocations: 35.77 kB / 0.6408 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002736/0.5447, allocations: 1.976 MB / 0.6427 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/0.5448, allocations: 27.95 kB / 0.6427 GB, free: 80 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5448, allocations: 3.938 kB / 0.6427 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.5448, allocations: 4 kB / 0.6427 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.5459, allocations: 1.015 MB / 0.6437 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.5459, allocations: 0 / 0.6437 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.5462, allocations: 63.94 kB / 0.6438 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.5462, allocations: 7.938 kB / 0.6438 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.5462, allocations: 15.92 kB / 0.6438 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.5462, allocations: 4 kB / 0.6438 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5462, allocations: 3.938 kB / 0.6438 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.5478, allocations: 1.108 MB / 0.6449 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.548, allocations: 91.14 kB / 0.645 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.23e-05/0.548, allocations: 31.78 kB / 0.645 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.5483, allocations: 23.97 kB / 0.645 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.5484, allocations: 31.94 kB / 0.6451 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.5484, allocations: 12 kB / 0.6451 GB, free: 13.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003816/0.5488, allocations: 323.1 kB / 0.6454 GB, free: 13.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5488, allocations: 0 / 0.6454 GB, free: 13.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002703/0.5515, allocations: 1.014 MB / 0.6464 GB, free: 12.27 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.006037/0.5575, allocations: 2.737 MB / 0.6491 GB, free: 9.504 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.5588, allocations: 0.5906 MB / 0.6496 GB, free: 8.914 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5588, allocations: 0 / 0.6496 GB, free: 8.914 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006808/0.5595, allocations: 417.6 kB / 0.65 GB, free: 8.504 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.5607, allocations: 216.9 kB / 0.6502 GB, free: 8.301 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0087/0.5694, allocations: 5.011 MB / 0.6551 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.57, allocations: 0.9638 MB / 0.6561 GB, free: 2.145 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004994/0.5705, allocations: 274.7 kB / 0.6563 GB, free: 1.883 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003392/0.5709, allocations: 259.3 kB / 0.6566 GB, free: 1.629 MB / 494.1 MB Notification: Performance of SimCode: time 1.293e-06/0.5709, allocations: 0 / 0.6566 GB, free: 1.629 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08718/0.658, allocations: 47.64 MB / 0.7031 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.47, allocations: 8 kB / 0.7031 GB, free: 2.16 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.598782784014475] 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.670535720011685 15.695250429 15.2181354 Calling exit ...