Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002125/0.002125, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247 MB, free: 10.44 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.2244/0.2244, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.002291/0.002291, allocations: 83.86 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3269, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03235/0.3593, allocations: 28.28 MB / 0.5582 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01766/0.377, allocations: 13.3 MB / 0.5712 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005129/0.3776, allocations: 11.94 kB / 0.5712 GB, free: 8.027 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008689/0.3785, allocations: 246.4 kB / 0.5714 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.3888, allocations: 3.668 MB / 0.575 GB, free: 4.117 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007712/0.3965, allocations: 2.384 MB / 0.5774 GB, free: 1.738 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.3979, allocations: 0.8924 MB / 0.5782 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004702/0.3984, allocations: 252.7 kB / 0.5785 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.3994, allocations: 446.2 kB / 0.5789 GB, free: 160 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004835/0.3999, allocations: 271 kB / 0.5792 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.626e-05/0.4, allocations: 32 kB / 0.5792 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01559/0.4156, allocations: 7.235 MB / 0.5862 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002381/0.4159, allocations: 103.6 kB / 0.5863 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.4163, allocations: 215.1 kB / 0.5866 GB, free: 8.305 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.4283, allocations: 4.435 MB / 0.5909 GB, free: 3.859 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.4284, allocations: 0 / 0.5909 GB, free: 3.859 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4284, allocations: 3.938 kB / 0.5909 GB, free: 3.855 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.4284, allocations: 0 / 0.5909 GB, free: 3.855 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.003634/0.432, allocations: 1.286 MB / 0.5921 GB, free: 2.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.4321, allocations: 12.03 kB / 0.5922 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.247e-05/0.4322, allocations: 62.72 kB / 0.5922 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.434, allocations: 212.5 kB / 0.5924 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.4347, allocations: 383.5 kB / 0.5928 GB, free: 1.816 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.4348, allocations: 28.97 kB / 0.5928 GB, free: 1.789 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.4348, allocations: 32.12 kB / 0.5928 GB, free: 1.758 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.4365, allocations: 0.594 MB / 0.5934 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4366, allocations: 0 / 0.5934 GB, free: 1.121 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.4366, allocations: 15.94 kB / 0.5934 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.4367, allocations: 8 kB / 0.5934 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.4384, allocations: 0.5524 MB / 0.594 GB, free: 0.543 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.003502/0.4419, allocations: 2.621 MB / 0.5965 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.4436, allocations: 474.1 kB / 0.597 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005015/0.4442, allocations: 196.7 kB / 0.5972 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05487/0.4991, allocations: 26.88 MB / 0.6234 GB, free: 14.72 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.4991, allocations: 30.56 kB / 0.6235 GB, free: 14.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.345e-06/0.4992, allocations: 8 kB / 0.6235 GB, free: 14.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.003114/0.5023, allocations: 0.817 MB / 0.6243 GB, free: 13.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.241e-05/0.5024, allocations: 106.8 kB / 0.6244 GB, free: 13.72 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.5028, allocations: 316.5 kB / 0.6247 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.5028, allocations: 29.7 kB / 0.6247 GB, free: 13.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.503, allocations: 208.5 kB / 0.6249 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.5031, allocations: 87.22 kB / 0.625 GB, free: 13.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.5032, allocations: 65.69 kB / 0.625 GB, free: 13 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5034, allocations: 350.7 kB / 0.6254 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004539/0.5039, allocations: 143.9 kB / 0.6255 GB, free: 12.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/0.5044, allocations: 255.7 kB / 0.6258 GB, free: 12.22 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009759/0.5054, allocations: 374 kB / 0.6261 GB, free: 11.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.5054, allocations: 0 / 0.6261 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001183/0.5066, allocations: 456.8 kB / 0.6266 GB, free: 11.37 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.5066, allocations: 4 kB / 0.6266 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5067, allocations: 4 kB / 0.6266 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.5067, allocations: 7.938 kB / 0.6266 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.5071, allocations: 84.19 kB / 0.6266 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.5071, allocations: 8 kB / 0.6267 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.5074, allocations: 51.73 kB / 0.6267 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.749e-05/0.5075, allocations: 19.94 kB / 0.6267 GB, free: 11.2 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: 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.000258/0.5078, allocations: 157.8 kB / 0.6269 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.813e-05/0.5079, allocations: 39.77 kB / 0.6269 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.5108, allocations: 1.921 MB / 0.6288 GB, free: 9.059 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.384e-05/0.5109, allocations: 27.95 kB / 0.6288 GB, free: 9.031 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.5109, allocations: 0 / 0.6288 GB, free: 9.031 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.5109, allocations: 3.984 kB / 0.6288 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.5121, allocations: 1.016 MB / 0.6298 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.5121, allocations: 4 kB / 0.6298 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.5125, allocations: 79.86 kB / 0.6299 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.5125, allocations: 8 kB / 0.6299 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.5125, allocations: 11.94 kB / 0.6299 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5126, allocations: 0 / 0.6299 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5126, allocations: 0 / 0.6299 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.5143, allocations: 1.1 MB / 0.631 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.5145, allocations: 172.2 kB / 0.6311 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.5146, allocations: 31.72 kB / 0.6312 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.5149, allocations: 27.97 kB / 0.6312 GB, free: 6.496 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.515, allocations: 35.89 kB / 0.6312 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.221e-05/0.5151, allocations: 15.98 kB / 0.6313 GB, free: 6.445 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.5155, allocations: 327.1 kB / 0.6316 GB, free: 6.125 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5155, allocations: 0 / 0.6316 GB, free: 6.125 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002842/0.5183, allocations: 1.01 MB / 0.6326 GB, free: 5.113 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.007129/0.5255, allocations: 2.727 MB / 0.6352 GB, free: 2.359 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.5269, allocations: 0.6101 MB / 0.6358 GB, free: 1.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.527, allocations: 4 kB / 0.6358 GB, free: 1.746 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008087/0.5278, allocations: 0.521 MB / 0.6363 GB, free: 1.223 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.529, allocations: 223.9 kB / 0.6365 GB, free: 1.012 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008883/0.5379, allocations: 5.04 MB / 0.6415 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.5386, allocations: 0.9638 MB / 0.6424 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005163/0.5391, allocations: 273.9 kB / 0.6427 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003469/0.5394, allocations: 259.3 kB / 0.6429 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.5395, allocations: 0 / 0.6429 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09035/0.6298, allocations: 46.83 MB / 0.6886 GB, free: 11.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/12.08, allocations: 18.27 kB / 0.6887 GB, free: 11.64 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1)