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.001747/0.001747, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002115/0.002115, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.457/1.457, 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.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.227/0.227, allocations: 46.93 MB / 361.6 MB, free: 4.363 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.001959/0.001959, allocations: 75.89 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3089, allocations: 66.03 MB / 0.5614 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03434/0.3433, allocations: 28.65 MB / 0.5894 GB, free: 7.727 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.3629, allocations: 13.38 MB / 0.6025 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004311/0.3633, allocations: 19.81 kB / 0.6025 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008816/0.3642, allocations: 254.4 kB / 0.6027 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01163/0.3758, allocations: 3.677 MB / 0.6063 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007767/0.3836, allocations: 2.386 MB / 0.6086 GB, free: 3.965 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00161/0.3852, allocations: 0.9119 MB / 0.6095 GB, free: 3.051 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004143/0.3856, allocations: 208.9 kB / 0.6097 GB, free: 2.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008489/0.3865, allocations: 458.2 kB / 0.6102 GB, free: 2.391 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.3869, allocations: 282.9 kB / 0.6104 GB, free: 2.113 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.213e-05/0.3869, allocations: 32 kB / 0.6105 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0155/0.4024, allocations: 7.266 MB / 0.6176 GB, free: 10.8 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.4027, allocations: 107.7 kB / 0.6177 GB, free: 10.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.4031, allocations: 222.9 kB / 0.6179 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01107/0.4141, allocations: 4.431 MB / 0.6222 GB, free: 6.039 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4142, allocations: 0 / 0.6222 GB, free: 6.039 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4142, allocations: 0 / 0.6222 GB, free: 6.039 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.4142, allocations: 0 / 0.6222 GB, free: 6.039 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.003728/0.4179, allocations: 1.188 MB / 0.6234 GB, free: 4.816 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4179, allocations: 12.03 kB / 0.6234 GB, free: 4.805 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.273e-05/0.418, allocations: 8.844 kB / 0.6234 GB, free: 4.797 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.207e-05/0.4181, allocations: 66.72 kB / 0.6235 GB, free: 4.723 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001744/0.4198, allocations: 216.4 kB / 0.6237 GB, free: 4.512 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.4204, allocations: 317.2 kB / 0.624 GB, free: 4.172 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.4204, allocations: 29.03 kB / 0.624 GB, free: 4.145 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.4205, allocations: 27.94 kB / 0.624 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.4221, allocations: 0.5824 MB / 0.6246 GB, free: 3.492 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4221, allocations: 7.938 kB / 0.6246 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.723e-05/0.4222, allocations: 16 kB / 0.6246 GB, free: 3.469 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4222, allocations: 8 kB / 0.6246 GB, free: 3.461 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.4239, allocations: 0.5215 MB / 0.6251 GB, free: 2.941 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.003464/0.4273, allocations: 2.527 MB / 0.6276 GB, free: 208 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.429, allocations: 442.1 kB / 0.628 GB, free: 15.76 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004439/0.4295, allocations: 176.7 kB / 0.6282 GB, free: 15.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04735/0.4768, allocations: 13.15 MB / 0.641 GB, free: 2.418 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.4769, allocations: 38.5 kB / 0.6411 GB, free: 2.371 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.425e-06/0.4769, allocations: 0 / 0.6411 GB, free: 2.371 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003083/0.4799, allocations: 0.7897 MB / 0.6418 GB, free: 1.574 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.4801, allocations: 106.8 kB / 0.6419 GB, free: 1.445 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004624/0.4805, allocations: 312.5 kB / 0.6422 GB, free: 1.133 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.916e-05/0.4806, allocations: 25.7 kB / 0.6423 GB, free: 1.102 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.4807, allocations: 216.5 kB / 0.6425 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4808, allocations: 87.27 kB / 0.6426 GB, free: 0.8008 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.481, allocations: 65.69 kB / 0.6426 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.4812, allocations: 346.8 kB / 0.6429 GB, free: 392 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.4816, allocations: 139.9 kB / 0.6431 GB, free: 252 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005149/0.4821, allocations: 231.9 kB / 0.6433 GB, free: 15.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008681/0.483, allocations: 361.9 kB / 0.6436 GB, free: 15.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.483, allocations: 0 / 0.6436 GB, free: 15.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001075/0.4841, allocations: 428.9 kB / 0.6441 GB, free: 15.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.4841, allocations: 8 kB / 0.6441 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.4841, allocations: 3.938 kB / 0.6441 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4841, allocations: 4 kB / 0.6441 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003399/0.4845, allocations: 84.19 kB / 0.6441 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.4845, allocations: 8 kB / 0.6442 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.4848, allocations: 43.75 kB / 0.6442 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.366e-05/0.4848, allocations: 16 kB / 0.6442 GB, free: 15 MB / 494.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.0001982/0.485, allocations: 157.8 kB / 0.6444 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.465e-05/0.4851, allocations: 39.7 kB / 0.6444 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/0.4878, allocations: 1.972 MB / 0.6463 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-05/0.4879, allocations: 39.94 kB / 0.6464 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.4879, allocations: 0 / 0.6464 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4879, allocations: 0 / 0.6464 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.489, allocations: 1.015 MB / 0.6474 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.489, allocations: 0 / 0.6474 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.4894, allocations: 71.88 kB / 0.6474 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.4894, allocations: 4 kB / 0.6474 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.4894, allocations: 11.94 kB / 0.6474 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.4894, allocations: 11.98 kB / 0.6475 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4894, allocations: 0 / 0.6475 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.491, allocations: 1.112 MB / 0.6485 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.4911, allocations: 91.08 kB / 0.6486 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.4912, allocations: 27.78 kB / 0.6487 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002652/0.4915, allocations: 23.97 kB / 0.6487 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.4916, allocations: 35.94 kB / 0.6487 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.4916, allocations: 8 kB / 0.6487 GB, free: 10.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004242/0.492, allocations: 323.1 kB / 0.649 GB, free: 9.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.492, allocations: 0 / 0.649 GB, free: 9.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002882/0.4949, allocations: 1.014 MB / 0.65 GB, free: 8.98 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.006053/0.501, allocations: 2.737 MB / 0.6527 GB, free: 6.215 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.5023, allocations: 0.5867 MB / 0.6533 GB, free: 5.629 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5023, allocations: 4 kB / 0.6533 GB, free: 5.625 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006842/0.503, allocations: 421.6 kB / 0.6537 GB, free: 5.211 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.5043, allocations: 211 kB / 0.6539 GB, free: 5.008 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008742/0.513, allocations: 5.011 MB / 0.6588 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006446/0.5136, allocations: 0.9677 MB / 0.6597 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005109/0.5142, allocations: 265.7 kB / 0.66 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.5145, allocations: 263.3 kB / 0.6602 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of SimCode: time 9.11e-07/0.5145, allocations: 0 / 0.6602 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08812/0.6026, allocations: 47.64 MB / 0.7067 GB, free: 14.88 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.41, allocations: 8 kB / 0.7067 GB, free: 14.88 MB / 0.545 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.42865946603706] 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.608091645000968 15.625602476 15.208089604 Calling exit ...