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.001611/0.001611, allocations: 121.1 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.00185/0.00185, allocations: 204.6 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.428/1.428, allocations: 227.4 MB / 247 MB, free: 10.41 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.227/0.227, allocations: 46.1 MB / 344.3 MB, free: 11.46 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.002359/0.002359, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3067, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03386/0.3406, allocations: 28.27 MB / 0.5582 GB, free: 5.363 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.358, allocations: 13.29 MB / 0.5712 GB, free: 8.027 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003297/0.3584, allocations: 7.938 kB / 0.5712 GB, free: 8.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007485/0.3591, allocations: 254.4 kB / 0.5714 GB, free: 7.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009569/0.3687, allocations: 3.673 MB / 0.575 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006698/0.3754, allocations: 2.371 MB / 0.5773 GB, free: 1.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001208/0.3766, allocations: 0.8924 MB / 0.5782 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004462/0.3771, allocations: 260.7 kB / 0.5785 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000798/0.3779, allocations: 430.2 kB / 0.5789 GB, free: 160 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003747/0.3783, allocations: 271 kB / 0.5791 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.3784, allocations: 32 kB / 0.5791 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.3923, allocations: 7.235 MB / 0.5862 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.3925, allocations: 99.72 kB / 0.5863 GB, free: 8.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003198/0.3928, allocations: 222.9 kB / 0.5865 GB, free: 8.301 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009467/0.4023, allocations: 4.427 MB / 0.5908 GB, free: 3.863 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4023, allocations: 0 / 0.5908 GB, free: 3.863 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4023, allocations: 0 / 0.5908 GB, free: 3.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.4023, allocations: 4 kB / 0.5908 GB, free: 3.859 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.003027/0.4054, allocations: 1.271 MB / 0.5921 GB, free: 2.535 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4054, allocations: 8.031 kB / 0.5921 GB, free: 2.527 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.086e-05/0.4055, allocations: 66.72 kB / 0.5922 GB, free: 2.453 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/0.4072, allocations: 220.5 kB / 0.5924 GB, free: 2.238 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.4078, allocations: 371.5 kB / 0.5927 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.4079, allocations: 32.97 kB / 0.5928 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/0.4079, allocations: 32.12 kB / 0.5928 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.4095, allocations: 0.5784 MB / 0.5934 GB, free: 1.156 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.4096, allocations: 7.938 kB / 0.5934 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.4096, allocations: 12 kB / 0.5934 GB, free: 1.137 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4096, allocations: 8 kB / 0.5934 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.4113, allocations: 0.5211 MB / 0.5939 GB, free: 0.6055 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.003233/0.4145, allocations: 2.625 MB / 0.5965 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.4161, allocations: 466.1 kB / 0.5969 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004435/0.4165, allocations: 184.7 kB / 0.5971 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05391/0.4705, allocations: 26.88 MB / 0.6233 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.4705, allocations: 34.56 kB / 0.6234 GB, free: 14.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.4705, allocations: 7.938 kB / 0.6234 GB, free: 14.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002966/0.4735, allocations: 0.7858 MB / 0.6241 GB, free: 13.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/0.4736, allocations: 106.8 kB / 0.6242 GB, free: 13.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.474, allocations: 308.5 kB / 0.6245 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.474, allocations: 33.7 kB / 0.6246 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.4742, allocations: 208.5 kB / 0.6248 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.162e-05/0.4743, allocations: 87.27 kB / 0.6248 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.4744, allocations: 69.69 kB / 0.6249 GB, free: 13.11 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.4746, allocations: 342.8 kB / 0.6252 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.475, allocations: 139.9 kB / 0.6254 GB, free: 12.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.4755, allocations: 235.7 kB / 0.6256 GB, free: 12.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008378/0.4763, allocations: 362 kB / 0.6259 GB, free: 11.97 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4763, allocations: 4 kB / 0.6259 GB, free: 11.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001042/0.4774, allocations: 424.9 kB / 0.6263 GB, free: 11.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.4774, allocations: 8 kB / 0.6264 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.4774, allocations: 4 kB / 0.6264 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.4775, allocations: 8.25 kB / 0.6264 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.4778, allocations: 83.88 kB / 0.6264 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.457e-06/0.4778, allocations: 4 kB / 0.6265 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.4781, allocations: 47.75 kB / 0.6265 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.4781, allocations: 12 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.0001935/0.4783, allocations: 157.8 kB / 0.6267 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.4784, allocations: 43.77 kB / 0.6267 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002666/0.4811, allocations: 1.901 MB / 0.6286 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/0.4811, allocations: 31.89 kB / 0.6286 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.4811, allocations: 3.984 kB / 0.6286 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4812, allocations: 4 kB / 0.6286 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.4823, allocations: 1.016 MB / 0.6296 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4823, allocations: 0 / 0.6296 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.4826, allocations: 75.88 kB / 0.6297 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.4826, allocations: 0 / 0.6297 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.4826, allocations: 11.94 kB / 0.6297 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4827, allocations: 0 / 0.6297 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.4827, allocations: 4 kB / 0.6297 GB, free: 8.062 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.4843, allocations: 1.081 MB / 0.6307 GB, free: 6.965 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.4844, allocations: 172.2 kB / 0.6309 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.4845, allocations: 23.78 kB / 0.6309 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.4848, allocations: 23.92 kB / 0.6309 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4849, allocations: 31.95 kB / 0.631 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.4849, allocations: 15.98 kB / 0.631 GB, free: 6.684 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003842/0.4853, allocations: 327.1 kB / 0.6313 GB, free: 6.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4853, allocations: 0 / 0.6313 GB, free: 6.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002772/0.4881, allocations: 1.01 MB / 0.6323 GB, free: 5.352 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.006025/0.4941, allocations: 2.717 MB / 0.6349 GB, free: 2.609 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.4954, allocations: 0.5989 MB / 0.6355 GB, free: 2.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.4954, allocations: 0 / 0.6355 GB, free: 2.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.4961, allocations: 0.5102 MB / 0.636 GB, free: 1.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.4973, allocations: 219.8 kB / 0.6362 GB, free: 1.297 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007752/0.505, allocations: 4.974 MB / 0.6411 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.5057, allocations: 0.9638 MB / 0.642 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000469/0.5062, allocations: 278.8 kB / 0.6423 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.5065, allocations: 255.4 kB / 0.6425 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of SimCode: time 5.11e-07/0.5066, allocations: 0 / 0.6425 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08532/0.5919, allocations: 46.66 MB / 0.6881 GB, free: 12.17 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.03, allocations: 0 / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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)