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.001733/0.001733, allocations: 121 kB / 18.5 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.002185/0.002185, allocations: 213.5 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.553/1.553, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2218/0.2218, allocations: 44.9 MB / 355.8 MB, free: 12.33 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.00203/0.00203, allocations: 63.91 kB / 0.4885 GB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1186, allocations: 65.42 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03354/0.1521, allocations: 28.43 MB / 0.5802 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.1701, allocations: 13.34 MB / 0.5932 GB, free: 224 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003157/0.1704, allocations: 19.81 kB / 0.5932 GB, free: 204 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2445/0.4149, allocations: 243.9 kB / 0.5935 GB, free: 3.867 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009456/0.4244, allocations: 3.661 MB / 0.597 GB, free: 3.867 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005811/0.4302, allocations: 2.381 MB / 0.5994 GB, free: 3.848 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001365/0.4315, allocations: 0.8909 MB / 0.6002 GB, free: 3.848 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003981/0.4319, allocations: 220.6 kB / 0.6005 GB, free: 3.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007979/0.4327, allocations: 451.5 kB / 0.6009 GB, free: 3.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003701/0.4331, allocations: 286.2 kB / 0.6012 GB, free: 3.836 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.4332, allocations: 33.62 kB / 0.6012 GB, free: 3.836 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01532/0.4485, allocations: 7.253 MB / 0.6083 GB, free: 3.797 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.4487, allocations: 101 kB / 0.6084 GB, free: 3.797 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003712/0.449, allocations: 222.1 kB / 0.6086 GB, free: 3.789 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009693/0.4587, allocations: 4.432 MB / 0.6129 GB, free: 3.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.4587, allocations: 0 / 0.6129 GB, free: 3.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4587, allocations: 0 / 0.6129 GB, free: 3.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.4588, allocations: 4.562 kB / 0.6129 GB, free: 3.23 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.004017/0.4628, allocations: 1.273 MB / 0.6142 GB, free: 2.367 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.4628, allocations: 9.75 kB / 0.6142 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.945e-05/0.4628, allocations: 7.344 kB / 0.6142 GB, free: 2.367 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.838e-05/0.4629, allocations: 67.41 kB / 0.6142 GB, free: 2.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001762/0.4647, allocations: 208.7 kB / 0.6144 GB, free: 2.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.4651, allocations: 381 kB / 0.6148 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.723e-05/0.4652, allocations: 28.72 kB / 0.6148 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.4652, allocations: 30.06 kB / 0.6149 GB, free: 1.957 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.4667, allocations: 0.5884 MB / 0.6154 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.4667, allocations: 0 / 0.6154 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.141e-05/0.4667, allocations: 14.91 kB / 0.6154 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.4668, allocations: 7.969 kB / 0.6155 GB, free: 1.695 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.4683, allocations: 0.5246 MB / 0.616 GB, free: 1.566 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.002593/0.4709, allocations: 2.629 MB / 0.6185 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.4725, allocations: 443.1 kB / 0.619 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.473, allocations: 174.4 kB / 0.6191 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05358/0.5265, allocations: 26.89 MB / 0.6454 GB, free: 8.137 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.5266, allocations: 32.25 kB / 0.6454 GB, free: 8.098 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.5266, allocations: 0 / 0.6454 GB, free: 8.098 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00307/0.5297, allocations: 0.7972 MB / 0.6462 GB, free: 7.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.154e-05/0.5297, allocations: 106.8 kB / 0.6463 GB, free: 7.168 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.5301, allocations: 308.5 kB / 0.6466 GB, free: 6.859 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.5302, allocations: 33.7 kB / 0.6466 GB, free: 6.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.5303, allocations: 200.5 kB / 0.6468 GB, free: 6.621 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.5304, allocations: 87.27 kB / 0.6469 GB, free: 6.535 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.5306, allocations: 73.64 kB / 0.647 GB, free: 6.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.5307, allocations: 338.8 kB / 0.6473 GB, free: 6.117 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004271/0.5312, allocations: 149.4 kB / 0.6474 GB, free: 5.973 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.5317, allocations: 238.9 kB / 0.6477 GB, free: 5.703 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009098/0.5326, allocations: 358.5 kB / 0.648 GB, free: 5.328 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.5326, allocations: 7.938 kB / 0.648 GB, free: 5.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001081/0.5337, allocations: 419.6 kB / 0.6484 GB, free: 4.918 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.5337, allocations: 13.75 kB / 0.6484 GB, free: 4.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5337, allocations: 4 kB / 0.6484 GB, free: 4.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.5337, allocations: 7.938 kB / 0.6484 GB, free: 4.898 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.5341, allocations: 82.44 kB / 0.6485 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.5341, allocations: 8 kB / 0.6485 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.5344, allocations: 55.64 kB / 0.6486 GB, free: 4.766 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.5344, allocations: 12 kB / 0.6486 GB, free: 4.754 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.0001928/0.5346, allocations: 156.7 kB / 0.6487 GB, free: 4.594 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.405e-05/0.5347, allocations: 35.81 kB / 0.6488 GB, free: 4.559 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002694/0.5374, allocations: 1.896 MB / 0.6506 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.157e-05/0.5374, allocations: 31.95 kB / 0.6506 GB, free: 2.629 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.5374, allocations: 3.984 kB / 0.6506 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.5374, allocations: 0 / 0.6506 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.5385, allocations: 1.017 MB / 0.6516 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5385, allocations: 0 / 0.6516 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.5389, allocations: 70.66 kB / 0.6517 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.5389, allocations: 0 / 0.6517 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.5389, allocations: 11.94 kB / 0.6517 GB, free: 1.492 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5389, allocations: 4 kB / 0.6517 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5389, allocations: 0 / 0.6517 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.5405, allocations: 1.084 MB / 0.6528 GB, free: 396 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.5407, allocations: 172.2 kB / 0.6529 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8e-05/0.5408, allocations: 27.78 kB / 0.653 GB, free: 176 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.541, allocations: 19.98 kB / 0.653 GB, free: 156 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.5411, allocations: 35.89 kB / 0.653 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.5411, allocations: 15.98 kB / 0.653 GB, free: 104 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003992/0.5415, allocations: 323.1 kB / 0.6533 GB, free: 15.79 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5415, allocations: 0 / 0.6533 GB, free: 15.79 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003735/0.5453, allocations: 1.006 MB / 0.6543 GB, free: 14.78 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.007651/0.5529, allocations: 2.709 MB / 0.657 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.5543, allocations: 0.5836 MB / 0.6575 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5543, allocations: 0 / 0.6575 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006838/0.555, allocations: 404.9 kB / 0.6579 GB, free: 11.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.5563, allocations: 228.8 kB / 0.6581 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.5654, allocations: 4.977 MB / 0.663 GB, free: 5.891 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.566, allocations: 0.9638 MB / 0.6639 GB, free: 4.898 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004958/0.5665, allocations: 273.2 kB / 0.6642 GB, free: 4.641 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.5668, allocations: 255.4 kB / 0.6645 GB, free: 4.391 MB / 494.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5668, allocations: 0 / 0.6645 GB, free: 4.391 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08392/0.6508, allocations: 46.71 MB / 0.7101 GB, free: 5.891 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.42, allocations: 8.062 kB / 0.7101 GB, free: 5.883 MB / 0.5294 GB " [Timeout remaining time 647] (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: 15.71700589498505] 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.58310257899575 12.600260808 12.138280568 Calling exit ...