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.001426/0.001426, allocations: 105 kB / 19.74 MB, free: 2.566 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.001677/0.001677, allocations: 216.2 kB / 22.92 MB, free: 5.535 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.316/1.316, allocations: 230.2 MB / 256.2 MB, free: 8.75 MB / 206.1 MB " [Timeout remaining time 179] 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.1984/0.1984, allocations: 46.9 MB / 359.3 MB, free: 4.977 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.002198/0.002198, allocations: 91.83 kB / 0.494 GB, free: 9.102 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2578, allocations: 65.98 MB / 0.5584 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03051/0.2883, allocations: 28.64 MB / 0.5864 GB, free: 8.445 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01594/0.3043, allocations: 13.38 MB / 0.5995 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003178/0.3046, allocations: 11.94 kB / 0.5995 GB, free: 11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006705/0.3053, allocations: 254.4 kB / 0.5997 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008465/0.3137, allocations: 3.665 MB / 0.6033 GB, free: 7.09 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005452/0.3192, allocations: 2.383 MB / 0.6056 GB, free: 4.711 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.3202, allocations: 0.9003 MB / 0.6065 GB, free: 3.809 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.3206, allocations: 200.8 kB / 0.6067 GB, free: 3.609 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006997/0.3213, allocations: 466.1 kB / 0.6071 GB, free: 3.152 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003317/0.3216, allocations: 266.9 kB / 0.6074 GB, free: 2.891 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.917e-05/0.3216, allocations: 36 kB / 0.6074 GB, free: 2.855 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.3339, allocations: 7.262 MB / 0.6145 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.3341, allocations: 103.7 kB / 0.6146 GB, free: 11.48 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002759/0.3343, allocations: 219 kB / 0.6148 GB, free: 11.27 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007948/0.3423, allocations: 4.423 MB / 0.6191 GB, free: 6.832 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3423, allocations: 4 kB / 0.6191 GB, free: 6.828 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3423, allocations: 3.938 kB / 0.6191 GB, free: 6.824 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.525e-06/0.3423, allocations: 0 / 0.6191 GB, free: 6.824 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.002775/0.3451, allocations: 1.267 MB / 0.6204 GB, free: 5.504 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3451, allocations: 12.03 kB / 0.6204 GB, free: 5.492 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.125e-05/0.3452, allocations: 66.72 kB / 0.6205 GB, free: 5.418 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001641/0.3468, allocations: 212.5 kB / 0.6207 GB, free: 5.211 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.3473, allocations: 383.5 kB / 0.621 GB, free: 4.797 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.3474, allocations: 25.03 kB / 0.621 GB, free: 4.773 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.3474, allocations: 32.12 kB / 0.6211 GB, free: 4.742 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.3489, allocations: 0.5822 MB / 0.6216 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3489, allocations: 0 / 0.6216 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.349, allocations: 12 kB / 0.6217 GB, free: 4.105 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.577e-06/0.349, allocations: 8 kB / 0.6217 GB, free: 4.098 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.3505, allocations: 0.5328 MB / 0.6222 GB, free: 3.566 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.003028/0.3536, allocations: 2.625 MB / 0.6247 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.3551, allocations: 442.2 kB / 0.6252 GB, free: 268 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004161/0.3555, allocations: 172.7 kB / 0.6253 GB, free: 92 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05015/0.4056, allocations: 26.88 MB / 0.6516 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.4057, allocations: 38.56 kB / 0.6516 GB, free: 1.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.4057, allocations: 0 / 0.6516 GB, free: 1.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002748/0.4084, allocations: 0.7897 MB / 0.6524 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.4085, allocations: 106.8 kB / 0.6525 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.4088, allocations: 308.5 kB / 0.6528 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.4089, allocations: 29.7 kB / 0.6528 GB, free: 492 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.409, allocations: 216.5 kB / 0.653 GB, free: 268 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.139e-05/0.4091, allocations: 83.22 kB / 0.6531 GB, free: 184 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.4092, allocations: 65.69 kB / 0.6532 GB, free: 112 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4093, allocations: 350.7 kB / 0.6535 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.4097, allocations: 139.9 kB / 0.6536 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.4102, allocations: 231.8 kB / 0.6539 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007963/0.4109, allocations: 365.9 kB / 0.6542 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.411, allocations: 0 / 0.6542 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009654/0.4119, allocations: 424.9 kB / 0.6546 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.4119, allocations: 8 kB / 0.6546 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4119, allocations: 4 kB / 0.6546 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.412, allocations: 11.92 kB / 0.6546 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.4123, allocations: 76.2 kB / 0.6547 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.4123, allocations: 15.92 kB / 0.6547 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/0.4125, allocations: 43.77 kB / 0.6548 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.4126, allocations: 19.98 kB / 0.6548 GB, free: 14.37 MB / 0.4981 GB 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.0001733/0.4127, allocations: 153.8 kB / 0.6549 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.875e-05/0.4128, allocations: 39.77 kB / 0.655 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.4152, allocations: 1.889 MB / 0.6568 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/0.4152, allocations: 35.95 kB / 0.6568 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.463e-06/0.4152, allocations: 4 kB / 0.6569 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4152, allocations: 3.984 kB / 0.6569 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009764/0.4162, allocations: 1.016 MB / 0.6578 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.4162, allocations: 3.984 kB / 0.6579 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002941/0.4165, allocations: 71.88 kB / 0.6579 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4165, allocations: 0 / 0.6579 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.4165, allocations: 11.94 kB / 0.6579 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4165, allocations: 7.938 kB / 0.6579 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4165, allocations: 4 kB / 0.6579 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.418, allocations: 1.085 MB / 0.659 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.4181, allocations: 168.3 kB / 0.6592 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.4182, allocations: 23.78 kB / 0.6592 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.4184, allocations: 23.97 kB / 0.6592 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.4185, allocations: 31.95 kB / 0.6592 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.4185, allocations: 15.94 kB / 0.6593 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00035/0.4189, allocations: 327.1 kB / 0.6596 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.4189, allocations: 0 / 0.6596 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002404/0.4213, allocations: 1.01 MB / 0.6606 GB, free: 8.348 MB / 0.4981 GB 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.005543/0.4268, allocations: 2.709 MB / 0.6632 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.428, allocations: 0.5788 MB / 0.6638 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.428, allocations: 4.625 kB / 0.6638 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005919/0.4286, allocations: 406.5 kB / 0.6642 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.4297, allocations: 215.5 kB / 0.6644 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00743/0.4371, allocations: 4.978 MB / 0.6692 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.4376, allocations: 0.9638 MB / 0.6702 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004447/0.4381, allocations: 278.2 kB / 0.6704 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/0.4384, allocations: 255.3 kB / 0.6707 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of SimCode: time 8.12e-07/0.4384, allocations: 0 / 0.6707 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07901/0.5174, allocations: 46.8 MB / 0.7164 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.73, allocations: 3.938 kB / 0.7164 GB, free: 15.08 MB / 0.5606 GB " [Timeout remaining time 649] (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: 13.307184746998246]