Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.001771/0.001771, 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.002191/0.002191, 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.436/1.436, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.2172/0.2172, allocations: 44.91 MB / 359.6 MB, free: 6.305 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.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.002144/0.002144, allocations: 63.91 kB / 0.4938 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3183, allocations: 65.49 MB / 0.5578 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.0372/0.3555, allocations: 28.68 MB / 0.5858 GB, free: 11.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01827/0.3738, allocations: 13.38 MB / 0.5989 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004455/0.3742, allocations: 15.88 kB / 0.5989 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009545/0.3752, allocations: 250.3 kB / 0.5991 GB, free: 13.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.3854, allocations: 3.674 MB / 0.6027 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006881/0.3923, allocations: 2.391 MB / 0.6051 GB, free: 7.262 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001475/0.3938, allocations: 0.9158 MB / 0.6059 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004371/0.3942, allocations: 212.9 kB / 0.6062 GB, free: 6.129 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000967/0.3952, allocations: 470.1 kB / 0.6066 GB, free: 5.668 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004463/0.3956, allocations: 274.8 kB / 0.6069 GB, free: 5.398 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.3957, allocations: 36 kB / 0.6069 GB, free: 5.363 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01573/0.4114, allocations: 7.266 MB / 0.614 GB, free: 14.09 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.4117, allocations: 103.6 kB / 0.6141 GB, free: 13.98 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.4121, allocations: 223 kB / 0.6143 GB, free: 13.77 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.4251, allocations: 4.431 MB / 0.6186 GB, free: 9.324 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4251, allocations: 0 / 0.6186 GB, free: 9.324 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4251, allocations: 0 / 0.6186 GB, free: 9.324 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.4252, allocations: 0 / 0.6186 GB, free: 9.324 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.004188/0.4293, allocations: 1.211 MB / 0.6198 GB, free: 8.078 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.4294, allocations: 12.02 kB / 0.6198 GB, free: 8.066 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.468e-05/0.4294, allocations: 12.78 kB / 0.6198 GB, free: 8.055 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.492e-05/0.4295, allocations: 62.73 kB / 0.6199 GB, free: 7.984 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001781/0.4313, allocations: 216.5 kB / 0.6201 GB, free: 7.773 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/0.432, allocations: 313.2 kB / 0.6204 GB, free: 7.438 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.4321, allocations: 25.03 kB / 0.6204 GB, free: 7.414 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.291e-05/0.4321, allocations: 35.94 kB / 0.6205 GB, free: 7.379 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.4339, allocations: 0.5863 MB / 0.621 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.4339, allocations: 0 / 0.621 GB, free: 6.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.4339, allocations: 15.94 kB / 0.621 GB, free: 6.734 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.434, allocations: 8 kB / 0.6211 GB, free: 6.727 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.4357, allocations: 0.5488 MB / 0.6216 GB, free: 6.18 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.003422/0.4391, allocations: 2.519 MB / 0.6241 GB, free: 3.449 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.4408, allocations: 458 kB / 0.6245 GB, free: 2.992 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/0.4413, allocations: 192.7 kB / 0.6247 GB, free: 2.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04858/0.4899, allocations: 13.15 MB / 0.6375 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.49, allocations: 30.56 kB / 0.6375 GB, free: 5.586 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.224e-06/0.49, allocations: 0 / 0.6375 GB, free: 5.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003193/0.4932, allocations: 0.8247 MB / 0.6384 GB, free: 4.754 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.4933, allocations: 114.8 kB / 0.6385 GB, free: 4.617 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004178/0.4937, allocations: 312.5 kB / 0.6388 GB, free: 4.305 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.4937, allocations: 33.7 kB / 0.6388 GB, free: 4.266 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.4939, allocations: 204.5 kB / 0.639 GB, free: 4.062 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.466e-05/0.494, allocations: 91.22 kB / 0.6391 GB, free: 3.973 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.4941, allocations: 65.69 kB / 0.6391 GB, free: 3.902 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4943, allocations: 346.8 kB / 0.6395 GB, free: 3.555 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.4947, allocations: 147.9 kB / 0.6396 GB, free: 3.41 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005418/0.4953, allocations: 239.9 kB / 0.6398 GB, free: 3.137 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009655/0.4962, allocations: 377.9 kB / 0.6402 GB, free: 2.734 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4962, allocations: 4 kB / 0.6402 GB, free: 2.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00116/0.4974, allocations: 444.9 kB / 0.6406 GB, free: 2.289 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.4974, allocations: 8 kB / 0.6406 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4974, allocations: 8.188 kB / 0.6406 GB, free: 2.273 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.4974, allocations: 11.94 kB / 0.6407 GB, free: 2.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003777/0.4978, allocations: 95.86 kB / 0.6407 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.4978, allocations: 4 kB / 0.6407 GB, free: 2.164 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.4981, allocations: 43.81 kB / 0.6408 GB, free: 2.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.4982, allocations: 19.98 kB / 0.6408 GB, free: 2.102 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: 4 (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.0002234/0.4984, allocations: 165.7 kB / 0.641 GB, free: 1.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.432e-05/0.4985, allocations: 35.77 kB / 0.641 GB, free: 1.895 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.5013, allocations: 1.991 MB / 0.6429 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/0.5013, allocations: 31.94 kB / 0.643 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.5013, allocations: 0 / 0.643 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.5013, allocations: 0 / 0.643 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.5025, allocations: 1.011 MB / 0.644 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.413e-06/0.5025, allocations: 4 kB / 0.644 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.5028, allocations: 83.86 kB / 0.644 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.5029, allocations: 0 / 0.644 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.5029, allocations: 15.88 kB / 0.6441 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.5029, allocations: 0 / 0.6441 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5029, allocations: 0 / 0.6441 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/0.5046, allocations: 1.132 MB / 0.6452 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.5047, allocations: 87.17 kB / 0.6452 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.736e-05/0.5048, allocations: 31.72 kB / 0.6453 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.5051, allocations: 35.95 kB / 0.6453 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.5052, allocations: 31.94 kB / 0.6453 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.5052, allocations: 12 kB / 0.6454 GB, free: 13.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003992/0.5056, allocations: 327.1 kB / 0.6457 GB, free: 13.04 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5056, allocations: 0 / 0.6457 GB, free: 13.04 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003151/0.5088, allocations: 1.01 MB / 0.6467 GB, free: 12.03 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: 18 ($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) * 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.007978/0.5168, allocations: 2.749 MB / 0.6493 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.5183, allocations: 0.6065 MB / 0.6499 GB, free: 8.648 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5183, allocations: 0 / 0.6499 GB, free: 8.648 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008176/0.5192, allocations: 433.5 kB / 0.6503 GB, free: 8.223 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.5205, allocations: 217.9 kB / 0.6506 GB, free: 8.016 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.5309, allocations: 5.07 MB / 0.6555 GB, free: 2.793 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000752/0.5316, allocations: 0.9638 MB / 0.6564 GB, free: 1.801 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006055/0.5322, allocations: 278.5 kB / 0.6567 GB, free: 1.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003698/0.5326, allocations: 255.3 kB / 0.657 GB, free: 1.285 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5326, allocations: 0 / 0.657 GB, free: 1.285 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/0.6334, allocations: 47.81 MB / 0.7036 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.41, allocations: 7.922 kB / 0.7037 GB, free: 1.645 MB / 0.5294 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.538558442960493] 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.615129273035564 15.63623339 15.206824471 Calling exit ...