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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00174/0.001746, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002081/0.002081, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2255/0.2255, allocations: 46.12 MB / 344.4 MB, free: 11.47 MB / 286.1 MB 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.00224/0.00224, allocations: 75.88 kB / 480.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3259, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0332/0.3591, allocations: 28.26 MB / 0.5582 GB, free: 5.371 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.3765, allocations: 13.29 MB / 0.5712 GB, free: 8.031 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.377, allocations: 11.94 kB / 0.5712 GB, free: 8.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007714/0.3778, allocations: 246.4 kB / 0.5714 GB, free: 7.777 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.3887, allocations: 3.672 MB / 0.575 GB, free: 4.105 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006599/0.3954, allocations: 2.367 MB / 0.5773 GB, free: 1.738 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.3966, allocations: 0.8925 MB / 0.5782 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004069/0.397, allocations: 248.7 kB / 0.5784 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.3978, allocations: 434.2 kB / 0.5789 GB, free: 176 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.3982, allocations: 267 kB / 0.5791 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.088e-05/0.3983, allocations: 35.94 kB / 0.5791 GB, free: 15.87 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0144/0.4127, allocations: 7.239 MB / 0.5862 GB, free: 8.629 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.4129, allocations: 95.72 kB / 0.5863 GB, free: 8.535 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003351/0.4133, allocations: 226.9 kB / 0.5865 GB, free: 8.312 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009808/0.4231, allocations: 4.427 MB / 0.5908 GB, free: 3.875 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4231, allocations: 0 / 0.5908 GB, free: 3.875 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4231, allocations: 0 / 0.5908 GB, free: 3.875 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.4231, allocations: 0 / 0.5908 GB, free: 3.875 MB / 446.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.00304/0.4262, allocations: 1.267 MB / 0.5921 GB, free: 2.555 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4262, allocations: 8.031 kB / 0.5921 GB, free: 2.547 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.441e-05/0.4263, allocations: 74.72 kB / 0.5922 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001739/0.4281, allocations: 216.4 kB / 0.5924 GB, free: 2.254 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006032/0.4287, allocations: 375.5 kB / 0.5927 GB, free: 1.852 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.4287, allocations: 29.03 kB / 0.5927 GB, free: 1.824 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.583e-05/0.4288, allocations: 32.12 kB / 0.5928 GB, free: 1.793 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.4304, allocations: 0.5822 MB / 0.5933 GB, free: 1.168 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.4304, allocations: 4 kB / 0.5934 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.4305, allocations: 19.94 kB / 0.5934 GB, free: 1.145 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.4305, allocations: 8 kB / 0.5934 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.4321, allocations: 0.5211 MB / 0.5939 GB, free: 0.6133 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.003243/0.4354, allocations: 2.625 MB / 0.5964 GB, free: 13.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.4371, allocations: 462.7 kB / 0.5969 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.4375, allocations: 192.7 kB / 0.5971 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05504/0.4926, allocations: 26.88 MB / 0.6233 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.759e-05/0.4927, allocations: 34.56 kB / 0.6234 GB, free: 14.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/0.4927, allocations: 0 / 0.6234 GB, free: 14.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002995/0.4957, allocations: 0.7897 MB / 0.6241 GB, free: 13.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.4958, allocations: 106.8 kB / 0.6242 GB, free: 13.83 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.4962, allocations: 308.5 kB / 0.6245 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.4963, allocations: 33.7 kB / 0.6246 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.4964, allocations: 212.5 kB / 0.6248 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.614e-05/0.4965, allocations: 87.25 kB / 0.6248 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.4967, allocations: 73.62 kB / 0.6249 GB, free: 13.11 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4969, allocations: 338.8 kB / 0.6252 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.4973, allocations: 139.9 kB / 0.6254 GB, free: 12.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/0.4978, allocations: 235.8 kB / 0.6256 GB, free: 12.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/0.4987, allocations: 354 kB / 0.6259 GB, free: 11.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.4987, allocations: 4 kB / 0.6259 GB, free: 11.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001025/0.4997, allocations: 433.1 kB / 0.6264 GB, free: 11.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.4997, allocations: 12.06 kB / 0.6264 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4997, allocations: 0 / 0.6264 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.4998, allocations: 7.938 kB / 0.6264 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.5001, allocations: 83.88 kB / 0.6265 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.5001, allocations: 7.938 kB / 0.6265 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.5004, allocations: 43.75 kB / 0.6265 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.5005, allocations: 16 kB / 0.6265 GB, free: 11.38 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.0002333/0.5007, allocations: 165.7 kB / 0.6267 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-05/0.5008, allocations: 39.77 kB / 0.6267 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/0.5036, allocations: 1.9 MB / 0.6286 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-05/0.5036, allocations: 27.95 kB / 0.6286 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.5036, allocations: 0 / 0.6286 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.5036, allocations: 3.984 kB / 0.6286 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.5047, allocations: 1.02 MB / 0.6296 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5048, allocations: 3.938 kB / 0.6296 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003211/0.5051, allocations: 71.94 kB / 0.6297 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5051, allocations: 0 / 0.6297 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.5051, allocations: 11.94 kB / 0.6297 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5051, allocations: 0 / 0.6297 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5051, allocations: 0 / 0.6297 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.5068, allocations: 1.093 MB / 0.6307 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.5069, allocations: 168.2 kB / 0.6309 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.507, allocations: 27.78 kB / 0.6309 GB, free: 6.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002579/0.5073, allocations: 19.98 kB / 0.631 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5074, allocations: 35.95 kB / 0.631 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.5074, allocations: 15.98 kB / 0.631 GB, free: 6.68 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003846/0.5078, allocations: 323.1 kB / 0.6313 GB, free: 6.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5078, allocations: 0 / 0.6313 GB, free: 6.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002791/0.5106, allocations: 1.006 MB / 0.6323 GB, free: 5.355 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.006146/0.5168, allocations: 2.708 MB / 0.6349 GB, free: 2.621 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.5181, allocations: 0.5948 MB / 0.6355 GB, free: 2.027 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5181, allocations: 0 / 0.6355 GB, free: 2.027 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.5188, allocations: 0.5064 MB / 0.636 GB, free: 1.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.52, allocations: 226.6 kB / 0.6362 GB, free: 1.309 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007707/0.5277, allocations: 4.982 MB / 0.6411 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006066/0.5283, allocations: 0.956 MB / 0.642 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000493/0.5288, allocations: 274.8 kB / 0.6423 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.5292, allocations: 259.3 kB / 0.6425 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of SimCode: time 6.91e-07/0.5292, allocations: 4 kB / 0.6425 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09469/0.6239, allocations: 46.65 MB / 0.6881 GB, free: 12.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.24, allocations: 6.531 kB / 0.6881 GB, free: 12.17 MB / 0.545 GB (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.0012 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)