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.001818/0.001818, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002151/0.002151, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.55 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.2222/0.2222, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.003004/0.003004, allocations: 76.5 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1273, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03325/0.1606, allocations: 28.25 MB / 0.4965 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2134/0.3741, allocations: 13.3 MB / 0.5095 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/0.3745, allocations: 9.688 kB / 0.5095 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007148/0.3753, allocations: 248.1 kB / 0.5098 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009404/0.3847, allocations: 3.664 MB / 0.5134 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005864/0.3906, allocations: 2.367 MB / 0.5157 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.3917, allocations: 0.8966 MB / 0.5165 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003608/0.3921, allocations: 246.1 kB / 0.5168 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006875/0.3928, allocations: 440.5 kB / 0.5172 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002938/0.3931, allocations: 275.5 kB / 0.5175 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.337e-05/0.3932, allocations: 34.62 kB / 0.5175 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01379/0.407, allocations: 7.06 MB / 0.5244 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.4072, allocations: 104.8 kB / 0.5245 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.4076, allocations: 223.1 kB / 0.5247 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.4179, allocations: 4.423 MB / 0.529 GB, free: 8.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.4179, allocations: 1.906 kB / 0.529 GB, free: 8.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4179, allocations: 0 / 0.529 GB, free: 8.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.4179, allocations: 0 / 0.529 GB, free: 8.129 MB / 382.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.003645/0.4216, allocations: 1.224 MB / 0.5302 GB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4216, allocations: 9.219 kB / 0.5302 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.176e-05/0.4217, allocations: 77.12 kB / 0.5303 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/0.4234, allocations: 210.3 kB / 0.5305 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.4238, allocations: 360.1 kB / 0.5308 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.4238, allocations: 26.78 kB / 0.5309 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.4239, allocations: 27.62 kB / 0.5309 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.4252, allocations: 0.5815 MB / 0.5315 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.4253, allocations: 1.375 kB / 0.5315 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.4253, allocations: 12.12 kB / 0.5315 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.4253, allocations: 8.25 kB / 0.5315 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.4268, allocations: 0.5326 MB / 0.532 GB, free: 6.082 MB / 382.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.002498/0.4293, allocations: 2.633 MB / 0.5346 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.4307, allocations: 464 kB / 0.535 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.4311, allocations: 187.8 kB / 0.5352 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05472/0.4859, allocations: 26.76 MB / 0.5613 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.4859, allocations: 39.44 kB / 0.5614 GB, free: 8.461 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.565e-06/0.486, allocations: 0 / 0.5614 GB, free: 8.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003001/0.489, allocations: 0.794 MB / 0.5621 GB, free: 7.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/0.489, allocations: 110.8 kB / 0.5623 GB, free: 7.527 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003847/0.4894, allocations: 312.5 kB / 0.5625 GB, free: 7.219 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.4895, allocations: 29.7 kB / 0.5626 GB, free: 7.184 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.4897, allocations: 208.2 kB / 0.5628 GB, free: 6.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/0.4897, allocations: 81.03 kB / 0.5629 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.4899, allocations: 69.69 kB / 0.5629 GB, free: 6.824 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.4901, allocations: 348.5 kB / 0.5633 GB, free: 6.477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/0.4905, allocations: 137.7 kB / 0.5634 GB, free: 6.344 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.491, allocations: 234.9 kB / 0.5636 GB, free: 6.074 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008502/0.4918, allocations: 364.9 kB / 0.564 GB, free: 5.688 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.4918, allocations: 0 / 0.564 GB, free: 5.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001052/0.4929, allocations: 416.9 kB / 0.5644 GB, free: 5.273 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.4929, allocations: 7.984 kB / 0.5644 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.4929, allocations: 4 kB / 0.5644 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.493, allocations: 7.938 kB / 0.5644 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/0.4933, allocations: 84.64 kB / 0.5645 GB, free: 5.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.4933, allocations: 4 kB / 0.5645 GB, free: 5.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.4936, allocations: 55.56 kB / 0.5645 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.245e-05/0.4937, allocations: 13.44 kB / 0.5645 GB, free: 5.102 MB / 414.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.0001977/0.4939, allocations: 161.7 kB / 0.5647 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.494, allocations: 31.62 kB / 0.5647 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.4966, allocations: 1.912 MB / 0.5666 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-05/0.4967, allocations: 35.89 kB / 0.5666 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.4967, allocations: 0.6875 kB / 0.5666 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4967, allocations: 0 / 0.5666 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.4979, allocations: 1.013 MB / 0.5676 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.4979, allocations: 0 / 0.5676 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003098/0.4982, allocations: 71.94 kB / 0.5677 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.4982, allocations: 11.92 kB / 0.5677 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.4982, allocations: 4 kB / 0.5677 GB, free: 1.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.4983, allocations: 11.94 kB / 0.5677 GB, free: 1.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4983, allocations: 0 / 0.5677 GB, free: 1.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.4998, allocations: 1.08 MB / 0.5687 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.5, allocations: 163.9 kB / 0.5689 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/0.5001, allocations: 19.75 kB / 0.5689 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.5004, allocations: 27.91 kB / 0.5689 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.5005, allocations: 35.95 kB / 0.569 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.5005, allocations: 8 kB / 0.569 GB, free: 448 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003847/0.5009, allocations: 327.1 kB / 0.5693 GB, free: 124 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5009, allocations: 0 / 0.5693 GB, free: 124 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003478/0.5044, allocations: 0.9958 MB / 0.5703 GB, free: 15.12 MB / 430.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.008164/0.5126, allocations: 2.716 MB / 0.5729 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.5144, allocations: 0.6104 MB / 0.5735 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5144, allocations: 0.625 kB / 0.5735 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.5152, allocations: 0.5103 MB / 0.574 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.5164, allocations: 222 kB / 0.5742 GB, free: 11.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008689/0.5251, allocations: 5.012 MB / 0.5791 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/0.5257, allocations: 0.9677 MB / 0.5801 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004814/0.5262, allocations: 270.6 kB / 0.5803 GB, free: 4.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.5265, allocations: 263.3 kB / 0.5806 GB, free: 4.492 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5265, allocations: 0 / 0.5806 GB, free: 4.492 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08419/0.6107, allocations: 46.6 MB / 0.6261 GB, free: 6.047 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11, allocations: 8.062 kB / 0.6261 GB, free: 6.039 MB / 478.1 MB (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)