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.001231/0.001231, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.8 MB, free: 10.49 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.2264/0.2264, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002218/0.002218, allocations: 82.3 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1287, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03289/0.1616, allocations: 28.27 MB / 0.4966 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.243/0.4046, allocations: 13.29 MB / 0.5095 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000582/0.4053, allocations: 12.88 kB / 0.5096 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009445/0.4063, allocations: 252.1 kB / 0.5098 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01119/0.4175, allocations: 3.664 MB / 0.5134 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007211/0.4247, allocations: 2.373 MB / 0.5157 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.4263, allocations: 0.8992 MB / 0.5166 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.4267, allocations: 255.6 kB / 0.5168 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008481/0.4276, allocations: 443.6 kB / 0.5172 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003472/0.4279, allocations: 268.1 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.067e-05/0.428, allocations: 33.41 kB / 0.5175 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01545/0.4434, allocations: 7.067 MB / 0.5244 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.4437, allocations: 104.9 kB / 0.5245 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.4441, allocations: 224.2 kB / 0.5247 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01117/0.4553, allocations: 4.423 MB / 0.5291 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.4554, allocations: 0 / 0.5291 GB, free: 8.086 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4554, allocations: 0 / 0.5291 GB, free: 8.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.4554, allocations: 0 / 0.5291 GB, free: 8.086 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.003856/0.4593, allocations: 1.251 MB / 0.5303 GB, free: 7.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.4593, allocations: 8.688 kB / 0.5303 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.983e-05/0.4594, allocations: 69.38 kB / 0.5304 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.4611, allocations: 213.7 kB / 0.5306 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004427/0.4616, allocations: 358 kB / 0.5309 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.4616, allocations: 26.19 kB / 0.5309 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.4617, allocations: 31.5 kB / 0.531 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.4631, allocations: 0.5999 MB / 0.5315 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.4632, allocations: 3.938 kB / 0.5315 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.4632, allocations: 12.12 kB / 0.5316 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.4632, allocations: 8.25 kB / 0.5316 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.4648, allocations: 0.5415 MB / 0.5321 GB, free: 6.012 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.002652/0.4674, allocations: 2.635 MB / 0.5347 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.4689, allocations: 464.4 kB / 0.5351 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004256/0.4694, allocations: 194.7 kB / 0.5353 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05573/0.5251, allocations: 26.77 MB / 0.5614 GB, free: 8.371 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.28e-05/0.5252, allocations: 38.5 kB / 0.5615 GB, free: 8.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.274e-06/0.5252, allocations: 0 / 0.5615 GB, free: 8.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003328/0.5286, allocations: 0.8252 MB / 0.5623 GB, free: 7.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.894e-05/0.5287, allocations: 110.8 kB / 0.5624 GB, free: 7.359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.5292, allocations: 304.6 kB / 0.5627 GB, free: 7.059 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.282e-05/0.5292, allocations: 33.64 kB / 0.5627 GB, free: 7.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.5294, allocations: 212 kB / 0.5629 GB, free: 6.812 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.5295, allocations: 74.86 kB / 0.563 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.5297, allocations: 77.59 kB / 0.5631 GB, free: 6.656 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.5299, allocations: 342.8 kB / 0.5634 GB, free: 6.312 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/0.5304, allocations: 152 kB / 0.5635 GB, free: 6.168 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.531, allocations: 247.7 kB / 0.5638 GB, free: 5.887 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009525/0.5319, allocations: 378.5 kB / 0.5641 GB, free: 5.484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.5319, allocations: 0 / 0.5641 GB, free: 5.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001193/0.5331, allocations: 441 kB / 0.5645 GB, free: 5.047 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.5332, allocations: 11.94 kB / 0.5646 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.5332, allocations: 7.984 kB / 0.5646 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/0.5332, allocations: 7.938 kB / 0.5646 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.5336, allocations: 87.86 kB / 0.5647 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.497e-05/0.5336, allocations: 7.984 kB / 0.5647 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003812/0.534, allocations: 51.75 kB / 0.5647 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.5341, allocations: 16 kB / 0.5647 GB, free: 4.859 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: 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.0002385/0.5343, allocations: 161.7 kB / 0.5649 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.5344, allocations: 31.62 kB / 0.5649 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/0.5374, allocations: 1.929 MB / 0.5668 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-05/0.5374, allocations: 35.88 kB / 0.5668 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.5375, allocations: 0 / 0.5668 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.5375, allocations: 0 / 0.5668 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.5387, allocations: 1.011 MB / 0.5678 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5388, allocations: 4 kB / 0.5678 GB, free: 1.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003506/0.5391, allocations: 77.8 kB / 0.5679 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.5391, allocations: 4 kB / 0.5679 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.5392, allocations: 8 kB / 0.5679 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.5392, allocations: 7.938 kB / 0.5679 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5392, allocations: 0 / 0.5679 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.541, allocations: 1.104 MB / 0.569 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.5412, allocations: 163.8 kB / 0.5691 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.5413, allocations: 27.73 kB / 0.5692 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.5416, allocations: 31.91 kB / 0.5692 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.5418, allocations: 35.95 kB / 0.5692 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/0.5418, allocations: 8 kB / 0.5692 GB, free: 148 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004388/0.5422, allocations: 331 kB / 0.5696 GB, free: 15.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5423, allocations: 0 / 0.5696 GB, free: 15.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004118/0.5464, allocations: 0.9955 MB / 0.5705 GB, free: 14.83 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: 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.008439/0.5548, allocations: 2.73 MB / 0.5732 GB, free: 12.17 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.5567, allocations: 0.6305 MB / 0.5738 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5567, allocations: 4 kB / 0.5738 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008283/0.5576, allocations: 0.5166 MB / 0.5743 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.559, allocations: 228.5 kB / 0.5745 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.5691, allocations: 5.072 MB / 0.5795 GB, free: 5.594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006439/0.5698, allocations: 0.9599 MB / 0.5804 GB, free: 4.609 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005872/0.5704, allocations: 270.8 kB / 0.5807 GB, free: 4.344 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003903/0.5708, allocations: 259.3 kB / 0.5809 GB, free: 4.09 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5708, allocations: 0 / 0.5809 GB, free: 4.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09396/0.6648, allocations: 46.79 MB / 0.6266 GB, free: 5.465 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.15, allocations: 11.8 kB / 0.6266 GB, free: 5.457 MB / 478.1 MB (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)