Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001817/0.001817, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002277/0.002277, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2377/0.2377, allocations: 46.95 MB / 361.7 MB, free: 4.02 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+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_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 63.89 kB / 0.4969 GB, free: 7.699 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3558, allocations: 66.04 MB / 0.5614 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03312/0.3889, allocations: 25.88 MB / 0.5866 GB, free: 10.24 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.4059, allocations: 11.75 MB / 0.5981 GB, free: 14.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003307/0.4062, allocations: 11.88 kB / 0.5981 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007713/0.407, allocations: 230.5 kB / 0.5983 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009623/0.4166, allocations: 3.643 MB / 0.6019 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006784/0.4234, allocations: 2.366 MB / 0.6042 GB, free: 8.203 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.4248, allocations: 0.9042 MB / 0.6051 GB, free: 7.297 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.4252, allocations: 212.8 kB / 0.6053 GB, free: 7.082 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008307/0.426, allocations: 442.2 kB / 0.6057 GB, free: 6.648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/0.4264, allocations: 286.8 kB / 0.606 GB, free: 6.367 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.501e-05/0.4265, allocations: 32 kB / 0.606 GB, free: 6.336 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01445/0.441, allocations: 7.188 MB / 0.613 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.4411, allocations: 99.67 kB / 0.6131 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.4414, allocations: 183.2 kB / 0.6133 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009724/0.4512, allocations: 4.42 MB / 0.6176 GB, free: 10.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.4512, allocations: 8 kB / 0.6176 GB, free: 10.42 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4512, allocations: 0 / 0.6176 GB, free: 10.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.4512, allocations: 0 / 0.6176 GB, free: 10.42 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.003136/0.4543, allocations: 1.188 MB / 0.6188 GB, free: 9.199 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.4544, allocations: 8.031 kB / 0.6188 GB, free: 9.191 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.806e-05/0.4544, allocations: 8.844 kB / 0.6188 GB, free: 9.184 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.513e-05/0.4545, allocations: 74.72 kB / 0.6189 GB, free: 9.102 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001798/0.4563, allocations: 208.5 kB / 0.6191 GB, free: 8.898 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.4568, allocations: 313.3 kB / 0.6194 GB, free: 8.562 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.4569, allocations: 25.03 kB / 0.6194 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.342e-05/0.4569, allocations: 31.94 kB / 0.6194 GB, free: 8.508 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.4587, allocations: 0.7291 MB / 0.6201 GB, free: 7.699 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.4587, allocations: 3.938 kB / 0.6201 GB, free: 7.695 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.4588, allocations: 20 kB / 0.6202 GB, free: 7.676 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.4588, allocations: 12 kB / 0.6202 GB, free: 7.664 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.4605, allocations: 0.5254 MB / 0.6207 GB, free: 7.141 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.003056/0.4636, allocations: 1.91 MB / 0.6226 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.4652, allocations: 450 kB / 0.623 GB, free: 4.699 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.4657, allocations: 176.7 kB / 0.6232 GB, free: 4.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04718/0.5129, allocations: 13.2 MB / 0.636 GB, free: 7.309 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.584e-05/0.5129, allocations: 46.48 kB / 0.6361 GB, free: 7.254 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.174e-06/0.5129, allocations: 0 / 0.6361 GB, free: 7.254 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003079/0.516, allocations: 0.7897 MB / 0.6369 GB, free: 6.457 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.5161, allocations: 102.8 kB / 0.637 GB, free: 6.332 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/0.5165, allocations: 316.5 kB / 0.6373 GB, free: 6.016 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/0.5166, allocations: 29.7 kB / 0.6373 GB, free: 5.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.5167, allocations: 208.5 kB / 0.6375 GB, free: 5.773 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.71e-05/0.5168, allocations: 91.25 kB / 0.6376 GB, free: 5.684 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.517, allocations: 73.64 kB / 0.6376 GB, free: 5.605 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.5171, allocations: 338.8 kB / 0.638 GB, free: 5.266 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004179/0.5176, allocations: 139.9 kB / 0.6381 GB, free: 5.129 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005175/0.5181, allocations: 287.3 kB / 0.6384 GB, free: 4.797 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008554/0.5189, allocations: 354 kB / 0.6387 GB, free: 4.418 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.537e-05/0.5189, allocations: 8 kB / 0.6387 GB, free: 4.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001068/0.52, allocations: 425 kB / 0.6391 GB, free: 3.988 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.52, allocations: 8 kB / 0.6391 GB, free: 3.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.5201, allocations: 3.938 kB / 0.6391 GB, free: 3.977 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.5201, allocations: 4 kB / 0.6391 GB, free: 3.973 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.5204, allocations: 83.88 kB / 0.6392 GB, free: 3.891 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.5204, allocations: 4 kB / 0.6392 GB, free: 3.887 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.5207, allocations: 51.88 kB / 0.6393 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.5208, allocations: 16 kB / 0.6393 GB, free: 3.82 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.0002488/0.521, allocations: 161.7 kB / 0.6394 GB, free: 3.652 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.043e-05/0.5211, allocations: 39.77 kB / 0.6395 GB, free: 3.613 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.5238, allocations: 1.975 MB / 0.6414 GB, free: 1.633 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/0.5238, allocations: 27.95 kB / 0.6414 GB, free: 1.605 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5238, allocations: 4 kB / 0.6414 GB, free: 1.602 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.5238, allocations: 3.984 kB / 0.6414 GB, free: 1.598 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.525, allocations: 0.9565 MB / 0.6424 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.525, allocations: 7.938 kB / 0.6424 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000316/0.5253, allocations: 71.88 kB / 0.6424 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.5253, allocations: 4 kB / 0.6425 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.5254, allocations: 11.94 kB / 0.6425 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.5254, allocations: 0 / 0.6425 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5254, allocations: 0 / 0.6425 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.527, allocations: 1.12 MB / 0.6436 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.5271, allocations: 95.14 kB / 0.6436 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.57e-05/0.5272, allocations: 23.78 kB / 0.6437 GB, free: 15.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.5275, allocations: 19.98 kB / 0.6437 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.5276, allocations: 31.94 kB / 0.6437 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.5276, allocations: 15.98 kB / 0.6437 GB, free: 15.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003905/0.528, allocations: 331.1 kB / 0.6441 GB, free: 14.86 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.528, allocations: 0 / 0.6441 GB, free: 14.86 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002876/0.5309, allocations: 1.006 MB / 0.645 GB, free: 13.85 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.006645/0.5375, allocations: 2.737 MB / 0.6477 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.5389, allocations: 0.5867 MB / 0.6483 GB, free: 10.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.5389, allocations: 4 kB / 0.6483 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007031/0.5396, allocations: 417.6 kB / 0.6487 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.5408, allocations: 219.2 kB / 0.6489 GB, free: 9.875 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008422/0.5492, allocations: 5.004 MB / 0.6538 GB, free: 4.723 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.5496, allocations: 374.2 kB / 0.6541 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000499/0.5501, allocations: 277.7 kB / 0.6544 GB, free: 4.062 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.5504, allocations: 259.4 kB / 0.6546 GB, free: 3.809 MB / 494.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5504, allocations: 0 / 0.6546 GB, free: 3.809 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09607/0.6465, allocations: 47.83 MB / 0.7014 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.61, allocations: 14.69 kB / 0.7014 GB, free: 4.234 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.71409795305226] 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.819442813983187 15.837651225 15.382658518 Calling exit ...