Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009166/0.0009166, allocations: 99.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009841/0.0009842, allocations: 203.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2094/0.2094, allocations: 45.91 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002693/0.0002693, allocations: 8 kB / 418.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1311, allocations: 63.47 MB / 481.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.3122/0.4434, allocations: 53.9 MB / 0.5229 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02958/0.4731, allocations: 21.37 MB / 0.5437 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.4749, allocations: 37.25 kB / 0.5438 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002352/0.4773, allocations: 0.7434 MB / 0.5445 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01422/0.4915, allocations: 3.747 MB / 0.5482 GB, free: 88 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01729/0.5088, allocations: 5.13 MB / 0.5532 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003757/0.5126, allocations: 1.677 MB / 0.5548 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.5138, allocations: 0.599 MB / 0.5554 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.5158, allocations: 0.9444 MB / 0.5563 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008412/0.5167, allocations: 0.6039 MB / 0.5569 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.5168, allocations: 48.06 kB / 0.557 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01881/0.5356, allocations: 7.917 MB / 0.5647 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005611/0.5362, allocations: 239.1 kB / 0.5649 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007076/0.5369, allocations: 261.1 kB / 0.5652 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009902/0.5469, allocations: 4.132 MB / 0.5692 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5469, allocations: 0 / 0.5692 GB, free: 15.67 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5469, allocations: 0 / 0.5692 GB, free: 15.67 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.547, allocations: 0 / 0.5692 GB, free: 15.67 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.006003/0.553, allocations: 2.058 MB / 0.5712 GB, free: 13.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.553, allocations: 8.031 kB / 0.5712 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/0.5532, allocations: 139.6 kB / 0.5713 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005045/0.5583, allocations: 0.662 MB / 0.572 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.5596, allocations: 0.733 MB / 0.5727 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.28e-05/0.5597, allocations: 78 kB / 0.5728 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.5598, allocations: 84 kB / 0.5729 GB, free: 11.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004167/0.564, allocations: 1.739 MB / 0.5746 GB, free: 9.969 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.564, allocations: 7.938 kB / 0.5746 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.5641, allocations: 40 kB / 0.5746 GB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.5642, allocations: 28 kB / 0.5746 GB, free: 9.895 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00438/0.5685, allocations: 1.674 MB / 0.5763 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009307/0.5779, allocations: 7.586 MB / 0.5837 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003954/0.5819, allocations: 1.315 MB / 0.585 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04921/0.6311, allocations: 27.08 MB / 0.6114 GB, free: 216 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.6312, allocations: 43.12 kB / 0.6114 GB, free: 164 kB / 446.1 MB Notification: Performance of pre-optimization done (n=67): time 2.886e-06/0.6312, allocations: 0 / 0.6114 GB, free: 164 kB / 446.1 MB Notification: Performance of matching and sorting (n=67): time 0.007333/0.6385, allocations: 2.23 MB / 0.6136 GB, free: 13.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.6387, allocations: 218.2 kB / 0.6138 GB, free: 13.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.6397, allocations: 0.835 MB / 0.6146 GB, free: 12.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-05/0.6398, allocations: 45.7 kB / 0.6147 GB, free: 12.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.6402, allocations: 487 kB / 0.6152 GB, free: 12.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.6404, allocations: 224.8 kB / 0.6154 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.6404, allocations: 16 kB / 0.6154 GB, free: 12.03 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.6406, allocations: 341.9 kB / 0.6157 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009727/0.6415, allocations: 393.7 kB / 0.6161 GB, free: 11.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.6427, allocations: 0.6828 MB / 0.6168 GB, free: 10.49 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.6438, allocations: 462.9 kB / 0.6172 GB, free: 10.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.6438, allocations: 4 kB / 0.6172 GB, free: 10.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002602/0.6464, allocations: 1.187 MB / 0.6184 GB, free: 8.836 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00105/0.6475, allocations: 3.222 MB / 0.6215 GB, free: 5.363 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.6475, allocations: 12 kB / 0.6215 GB, free: 5.352 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.798e-05/0.6475, allocations: 16 kB / 0.6215 GB, free: 5.336 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009049/0.6484, allocations: 271.7 kB / 0.6218 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.6485, allocations: 23.92 kB / 0.6218 GB, free: 5.047 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.6495, allocations: 178.7 kB / 0.622 GB, free: 4.871 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.452e-05/0.6496, allocations: 59.97 kB / 0.622 GB, free: 4.812 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.6496, allocations: 4 kB / 0.622 GB, free: 4.809 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002318/0.6519, allocations: 1.054 MB / 0.6231 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.6519, allocations: 11.94 kB / 0.6231 GB, free: 3.742 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.652, allocations: 12 kB / 0.6231 GB, free: 3.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008628/0.6528, allocations: 272 kB / 0.6234 GB, free: 3.465 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.6529, allocations: 15.94 kB / 0.6234 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009405/0.6538, allocations: 174.9 kB / 0.6235 GB, free: 3.277 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.6539, allocations: 51.98 kB / 0.6236 GB, free: 3.227 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.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 (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005256/0.6544, allocations: 336.8 kB / 0.6239 GB, free: 2.887 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.6546, allocations: 114.7 kB / 0.624 GB, free: 2.773 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005977/0.6606, allocations: 5.124 MB / 0.629 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.512e-05/0.6607, allocations: 63.91 kB / 0.6291 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.6607, allocations: 3.984 kB / 0.6291 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.6607, allocations: 7.984 kB / 0.6291 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.6635, allocations: 2.506 MB / 0.6315 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.6635, allocations: 0 / 0.6315 GB, free: 10.96 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008371/0.6644, allocations: 231.8 kB / 0.6318 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.6644, allocations: 4 kB / 0.6318 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.6645, allocations: 24 kB / 0.6318 GB, free: 10.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.6645, allocations: 7.984 kB / 0.6318 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.6645, allocations: 0 / 0.6318 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.6679, allocations: 2.387 MB / 0.6341 GB, free: 8.27 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008963/0.6688, allocations: 0.6875 MB / 0.6348 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/0.669, allocations: 19.98 kB / 0.6348 GB, free: 7.539 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007969/0.6698, allocations: 111.8 kB / 0.6349 GB, free: 7.43 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.67, allocations: 80.86 kB / 0.635 GB, free: 7.352 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.67, allocations: 35.98 kB / 0.635 GB, free: 7.316 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001559/0.6716, allocations: 1.187 MB / 0.6362 GB, free: 6.105 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6716, allocations: 0 / 0.6362 GB, free: 6.105 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004978/0.6766, allocations: 1.565 MB / 0.6377 GB, free: 4.539 MB / 478.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: 42 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009004/0.6856, allocations: 4.181 MB / 0.6418 GB, free: 316 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004429/0.6901, allocations: 2.041 MB / 0.6438 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6901, allocations: 0 / 0.6438 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.6918, allocations: 1.164 MB / 0.6449 GB, free: 13.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003344/0.6951, allocations: 0.5986 MB / 0.6455 GB, free: 12.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.7075, allocations: 11.76 MB / 0.657 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.7087, allocations: 1.569 MB / 0.6585 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002569/0.7113, allocations: 1.595 MB / 0.6601 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009393/0.7123, allocations: 0.8078 MB / 0.6609 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/0.7123, allocations: 0 / 0.6609 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3347/1.047, allocations: 74.18 MB / 0.7333 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001341/1.047, allocations: 240.7 kB / 0.7336 GB, free: 176.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.117/6.164, allocations: 4 kB / 0.7336 GB, free: 176.8 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat does not exist to compare? outputFormat=mat