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.001347/0.001347, allocations: 118.9 kB / 17.83 MB, free: 5.203 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.001415/0.001415, allocations: 210.3 kB / 20.8 MB, free: 2.258 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.451/1.451, allocations: 207.6 MB / 231.2 MB, free: 4.109 MB / 174.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.3458/0.3458, allocations: 44.23 MB / 327.3 MB, free: 6.676 MB / 254.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.002256/0.002256, allocations: 68.45 kB / 462.9 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.245, allocations: 61 MB / 0.5116 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0274/0.2724, allocations: 28.29 MB / 0.5393 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01788/0.2902, allocations: 13.33 MB / 0.5523 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004207/0.2907, allocations: 11.88 kB / 0.5523 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007617/0.2914, allocations: 258.4 kB / 0.5525 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.3021, allocations: 3.658 MB / 0.5561 GB, free: 1.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006747/0.3088, allocations: 2.373 MB / 0.5584 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.3102, allocations: 0.8921 MB / 0.5593 GB, free: 13.99 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004065/0.3106, allocations: 216.7 kB / 0.5595 GB, free: 13.77 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009044/0.3115, allocations: 454.2 kB / 0.5599 GB, free: 13.33 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.3119, allocations: 278.9 kB / 0.5602 GB, free: 13.05 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.79e-05/0.312, allocations: 36 kB / 0.5602 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01501/0.327, allocations: 7.242 MB / 0.5673 GB, free: 5.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.3272, allocations: 99.66 kB / 0.5674 GB, free: 5.672 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003723/0.3276, allocations: 222.9 kB / 0.5676 GB, free: 5.453 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.3381, allocations: 4.408 MB / 0.5719 GB, free: 1.035 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3381, allocations: 0 / 0.5719 GB, free: 1.035 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3381, allocations: 0 / 0.5719 GB, free: 1.035 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3381, allocations: 4 kB / 0.5719 GB, free: 1.031 MB / 430.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.003326/0.3414, allocations: 1.267 MB / 0.5732 GB, free: 15.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3414, allocations: 11.89 kB / 0.5732 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.119e-05/0.3415, allocations: 8.844 kB / 0.5732 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.328e-05/0.3416, allocations: 70.72 kB / 0.5733 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001767/0.3433, allocations: 208.5 kB / 0.5735 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.344, allocations: 383.4 kB / 0.5738 GB, free: 14.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.344, allocations: 29.03 kB / 0.5739 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.3441, allocations: 31.94 kB / 0.5739 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.3457, allocations: 0.5745 MB / 0.5744 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3457, allocations: 3.938 kB / 0.5744 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.3458, allocations: 16 kB / 0.5745 GB, free: 14.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.3458, allocations: 8 kB / 0.5745 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.3475, allocations: 0.525 MB / 0.575 GB, free: 13.77 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.003656/0.3512, allocations: 2.629 MB / 0.5776 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.3529, allocations: 442.2 kB / 0.578 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004811/0.3534, allocations: 173.2 kB / 0.5781 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05673/0.4101, allocations: 24.31 MB / 0.6019 GB, free: 15.09 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.4101, allocations: 34.5 kB / 0.6019 GB, free: 15.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/0.4101, allocations: 0 / 0.6019 GB, free: 15.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003108/0.4132, allocations: 0.796 MB / 0.6027 GB, free: 14.24 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.939e-05/0.4133, allocations: 106.8 kB / 0.6028 GB, free: 14.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.4137, allocations: 308.5 kB / 0.6031 GB, free: 13.81 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.4137, allocations: 33.7 kB / 0.6031 GB, free: 13.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.4139, allocations: 208.5 kB / 0.6033 GB, free: 13.56 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.106e-05/0.414, allocations: 87.2 kB / 0.6034 GB, free: 13.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.4141, allocations: 73.64 kB / 0.6035 GB, free: 13.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4143, allocations: 342.8 kB / 0.6038 GB, free: 13.05 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.4147, allocations: 143.8 kB / 0.6039 GB, free: 12.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.4152, allocations: 238.8 kB / 0.6042 GB, free: 12.64 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000972/0.4162, allocations: 354 kB / 0.6045 GB, free: 12.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4162, allocations: 0 / 0.6045 GB, free: 12.26 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00116/0.4174, allocations: 429 kB / 0.6049 GB, free: 11.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.4174, allocations: 8 kB / 0.6049 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.4174, allocations: 3.938 kB / 0.6049 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.4174, allocations: 4 kB / 0.6049 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.4178, allocations: 88.19 kB / 0.605 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.4178, allocations: 4 kB / 0.605 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.4181, allocations: 47.7 kB / 0.6051 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.4181, allocations: 16 kB / 0.6051 GB, free: 11.67 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.0002021/0.4183, allocations: 161.7 kB / 0.6052 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.022e-05/0.4184, allocations: 31.81 kB / 0.6053 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002728/0.4211, allocations: 1.893 MB / 0.6071 GB, free: 9.559 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/0.4212, allocations: 27.95 kB / 0.6071 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4212, allocations: 0 / 0.6071 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.4212, allocations: 7.969 kB / 0.6071 GB, free: 9.523 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.4224, allocations: 1.024 MB / 0.6081 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4224, allocations: 0 / 0.6081 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000326/0.4227, allocations: 71.88 kB / 0.6082 GB, free: 8.379 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.4227, allocations: 7.938 kB / 0.6082 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.4227, allocations: 11.94 kB / 0.6082 GB, free: 8.359 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4227, allocations: 0 / 0.6082 GB, free: 8.359 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4227, allocations: 0 / 0.6082 GB, free: 8.359 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.4245, allocations: 1.093 MB / 0.6093 GB, free: 7.246 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.4246, allocations: 172.2 kB / 0.6095 GB, free: 7.059 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.4247, allocations: 23.83 kB / 0.6095 GB, free: 7.035 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.425, allocations: 19.98 kB / 0.6095 GB, free: 7.016 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.4251, allocations: 31.95 kB / 0.6095 GB, free: 6.984 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.4251, allocations: 15.98 kB / 0.6095 GB, free: 6.969 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003999/0.4255, allocations: 323.1 kB / 0.6099 GB, free: 6.652 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4255, allocations: 4 kB / 0.6099 GB, free: 6.648 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002935/0.4285, allocations: 1.006 MB / 0.6108 GB, free: 5.641 MB / 478.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.00647/0.4349, allocations: 2.713 MB / 0.6135 GB, free: 2.902 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.4362, allocations: 0.5754 MB / 0.6141 GB, free: 2.324 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4362, allocations: 4 kB / 0.6141 GB, free: 2.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006821/0.4369, allocations: 413.2 kB / 0.6144 GB, free: 1.914 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.4381, allocations: 209.7 kB / 0.6146 GB, free: 1.711 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00844/0.4465, allocations: 4.978 MB / 0.6195 GB, free: 12.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006227/0.4471, allocations: 0.9638 MB / 0.6205 GB, free: 11.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005055/0.4476, allocations: 278.8 kB / 0.6207 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/0.448, allocations: 255.3 kB / 0.621 GB, free: 11.08 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/0.448, allocations: 3.938 kB / 0.621 GB, free: 11.07 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3006/0.7486, allocations: 46.62 MB / 0.6665 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.77, allocations: 13.8 kB / 0.6665 GB, free: 105.2 MB / 0.4981 GB " [Timeout remaining time 647] (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: 15.684917465026956] 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.936401851009578 12.951286534 12.610119654 Calling exit ...