Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001308/0.001308, allocations: 120.8 kB / 18.51 MB, free: 4.531 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.002224/0.002224, allocations: 212.9 kB / 21.46 MB, free: 1.586 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.486/1.486, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2256/0.2256, allocations: 46.93 MB / 357.7 MB, free: 10.18 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 83.86 kB / 0.4917 GB, free: 7.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1261, allocations: 66.04 MB / 0.5562 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03371/0.1598, allocations: 28.43 MB / 0.5839 GB, free: 8.988 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2843/0.4442, allocations: 13.33 MB / 0.5969 GB, free: 3.754 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003833/0.4446, allocations: 15.03 kB / 0.5969 GB, free: 3.754 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007666/0.4453, allocations: 249.9 kB / 0.5972 GB, free: 3.754 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.4559, allocations: 3.676 MB / 0.6008 GB, free: 3.723 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007065/0.463, allocations: 2.376 MB / 0.6031 GB, free: 3.664 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001541/0.4645, allocations: 0.8919 MB / 0.604 GB, free: 3.664 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.4649, allocations: 221.2 kB / 0.6042 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008524/0.4658, allocations: 451.5 kB / 0.6046 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.4662, allocations: 281.3 kB / 0.6049 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-05/0.4662, allocations: 32.56 kB / 0.6049 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01631/0.4825, allocations: 7.253 MB / 0.612 GB, free: 3.566 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.4828, allocations: 104.9 kB / 0.6121 GB, free: 3.551 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004593/0.4832, allocations: 222.2 kB / 0.6123 GB, free: 3.492 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.4949, allocations: 4.431 MB / 0.6166 GB, free: 2.328 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.4949, allocations: 4.562 kB / 0.6166 GB, free: 2.328 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4949, allocations: 0 / 0.6166 GB, free: 2.328 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.4949, allocations: 0 / 0.6166 GB, free: 2.328 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.0045/0.4994, allocations: 1.265 MB / 0.6179 GB, free: 1.465 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4995, allocations: 9.75 kB / 0.6179 GB, free: 1.465 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.773e-05/0.4995, allocations: 75.2 kB / 0.6179 GB, free: 1.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001759/0.5013, allocations: 214.1 kB / 0.6182 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.5018, allocations: 381.2 kB / 0.6185 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.5018, allocations: 24.5 kB / 0.6185 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.5019, allocations: 30.16 kB / 0.6186 GB, free: 1.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.5033, allocations: 0.5808 MB / 0.6191 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.5033, allocations: 4.906 kB / 0.6191 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.5034, allocations: 12.59 kB / 0.6192 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.5034, allocations: 7.594 kB / 0.6192 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.5049, allocations: 0.5321 MB / 0.6197 GB, free: 0.6406 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.003247/0.5082, allocations: 2.618 MB / 0.6222 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.5098, allocations: 448.2 kB / 0.6227 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004358/0.5102, allocations: 171.7 kB / 0.6228 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05538/0.5656, allocations: 26.87 MB / 0.6491 GB, free: 5.684 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.5657, allocations: 42.56 kB / 0.6491 GB, free: 5.633 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.004e-06/0.5657, allocations: 0 / 0.6491 GB, free: 5.633 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003049/0.5687, allocations: 0.7935 MB / 0.6499 GB, free: 4.832 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.5688, allocations: 102.8 kB / 0.65 GB, free: 4.707 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004154/0.5692, allocations: 312.5 kB / 0.6503 GB, free: 4.398 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/0.5693, allocations: 29.7 kB / 0.6503 GB, free: 4.363 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.5694, allocations: 215.3 kB / 0.6505 GB, free: 4.152 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.5695, allocations: 91.22 kB / 0.6506 GB, free: 4.062 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.5697, allocations: 69.69 kB / 0.6507 GB, free: 3.988 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.5698, allocations: 338.8 kB / 0.651 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.5702, allocations: 137.4 kB / 0.6511 GB, free: 3.516 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.5707, allocations: 243.3 kB / 0.6514 GB, free: 3.238 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008672/0.5716, allocations: 361.9 kB / 0.6517 GB, free: 2.852 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5716, allocations: 0 / 0.6517 GB, free: 2.852 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001074/0.5727, allocations: 421.3 kB / 0.6521 GB, free: 2.434 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.5727, allocations: 11.97 kB / 0.6521 GB, free: 2.422 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.5727, allocations: 4.875 kB / 0.6521 GB, free: 2.418 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.923e-05/0.5727, allocations: 7.938 kB / 0.6521 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.5731, allocations: 83.88 kB / 0.6522 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.5731, allocations: 4 kB / 0.6522 GB, free: 2.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.5734, allocations: 47.75 kB / 0.6523 GB, free: 2.277 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.5734, allocations: 15.89 kB / 0.6523 GB, free: 2.266 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.0002293/0.5737, allocations: 161.8 kB / 0.6524 GB, free: 2.098 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.583e-05/0.5738, allocations: 35.77 kB / 0.6525 GB, free: 2.062 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002697/0.5765, allocations: 1.904 MB / 0.6543 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.216e-05/0.5765, allocations: 35.88 kB / 0.6544 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.5765, allocations: 0 / 0.6544 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.5765, allocations: 0 / 0.6544 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.5777, allocations: 1.019 MB / 0.6553 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.5777, allocations: 4 kB / 0.6554 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.578, allocations: 71.88 kB / 0.6554 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.578, allocations: 4 kB / 0.6554 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.5781, allocations: 11.98 kB / 0.6554 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.5781, allocations: 7.922 kB / 0.6554 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5781, allocations: 0 / 0.6554 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.5796, allocations: 1.081 MB / 0.6565 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.5798, allocations: 168.2 kB / 0.6567 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.5798, allocations: 23.84 kB / 0.6567 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.5801, allocations: 27.91 kB / 0.6567 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.925e-05/0.5802, allocations: 35.95 kB / 0.6567 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.5802, allocations: 8 kB / 0.6568 GB, free: 13.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000386/0.5806, allocations: 327.1 kB / 0.6571 GB, free: 13.28 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5806, allocations: 0 / 0.6571 GB, free: 13.28 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004419/0.585, allocations: 1.01 MB / 0.658 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.009323/0.5944, allocations: 2.704 MB / 0.6607 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.5958, allocations: 0.5793 MB / 0.6613 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.5958, allocations: 4 kB / 0.6613 GB, free: 9.051 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006518/0.5964, allocations: 402.5 kB / 0.6616 GB, free: 8.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.5977, allocations: 209.2 kB / 0.6618 GB, free: 8.457 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009937/0.6076, allocations: 4.979 MB / 0.6667 GB, free: 3.34 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.6082, allocations: 0.9599 MB / 0.6676 GB, free: 2.352 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005195/0.6088, allocations: 277.5 kB / 0.6679 GB, free: 2.086 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000348/0.6091, allocations: 259.3 kB / 0.6682 GB, free: 1.832 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6091, allocations: 0 / 0.6682 GB, free: 1.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09168/0.7008, allocations: 46.67 MB / 0.7137 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.94, allocations: 15.22 kB / 0.7137 GB, free: 3.293 MB / 0.5294 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000599281 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.959718946833163] 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.039630917832255 12.058452511 11.558826954 Calling exit ...