Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 97.55 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 203.3 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.346/1.346, 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.2011/0.2011, allocations: 45.92 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002933, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.127, allocations: 63.46 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.3132/0.4402, allocations: 40.32 MB / 0.5096 GB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03269/0.4729, allocations: 22.62 MB / 0.5317 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.4744, allocations: 39.78 kB / 0.5317 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.4759, allocations: 0.5029 MB / 0.5322 GB, free: 9.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02011/0.496, allocations: 4.769 MB / 0.5369 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01397/0.51, allocations: 4.079 MB / 0.5409 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.513, allocations: 1.491 MB / 0.5423 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000824/0.5138, allocations: 0.495 MB / 0.5428 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01441/0.5282, allocations: 9.156 MB / 0.5517 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02184/0.5501, allocations: 14.38 MB / 0.5658 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003681/0.5505, allocations: 40 kB / 0.5658 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0218/0.5723, allocations: 8.322 MB / 0.574 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005863/0.573, allocations: 275.2 kB / 0.5742 GB, free: 10.53 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004889/0.5735, allocations: 229.2 kB / 0.5744 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008738/0.5822, allocations: 4.137 MB / 0.5785 GB, free: 6.152 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5822, allocations: 0 / 0.5785 GB, free: 6.152 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5823, allocations: 4 kB / 0.5785 GB, free: 6.148 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.5823, allocations: 0 / 0.5785 GB, free: 6.148 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.005262/0.5875, allocations: 1.935 MB / 0.5804 GB, free: 4.164 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.5876, allocations: 8.562 kB / 0.5804 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001795/0.5878, allocations: 130.8 kB / 0.5805 GB, free: 4.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002417/0.5902, allocations: 374.4 kB / 0.5809 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.5916, allocations: 0.6992 MB / 0.5815 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.7e-05/0.5917, allocations: 73.92 kB / 0.5816 GB, free: 2.844 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.5918, allocations: 75.98 kB / 0.5817 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00319/0.595, allocations: 1.456 MB / 0.5831 GB, free: 1.242 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.595, allocations: 4.828 kB / 0.5831 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-05/0.5951, allocations: 35.98 kB / 0.5831 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.459e-05/0.5952, allocations: 61.91 kB / 0.5832 GB, free: 1.145 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003153/0.5984, allocations: 1.346 MB / 0.5845 GB, free: 15.79 MB / 430.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.00847/0.6069, allocations: 6.534 MB / 0.5909 GB, free: 8.719 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.6097, allocations: 1.027 MB / 0.5919 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06741/0.6771, allocations: 35.75 MB / 0.6268 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.6772, allocations: 39.88 kB / 0.6269 GB, free: 15.36 MB / 478.1 MB Notification: Performance of pre-optimization done (n=56): time 2.865e-06/0.6772, allocations: 0 / 0.6269 GB, free: 15.36 MB / 478.1 MB Notification: Performance of matching and sorting (n=60): time 0.008769/0.686, allocations: 3.34 MB / 0.6301 GB, free: 11.96 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.6861, allocations: 162.8 kB / 0.6303 GB, free: 11.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008704/0.687, allocations: 0.7036 MB / 0.631 GB, free: 11.06 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.965e-05/0.6871, allocations: 37.7 kB / 0.631 GB, free: 11.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003009/0.6874, allocations: 427.5 kB / 0.6314 GB, free: 10.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.6875, allocations: 205 kB / 0.6316 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.6876, allocations: 16 kB / 0.6316 GB, free: 10.38 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.6878, allocations: 394.7 kB / 0.632 GB, free: 9.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/0.6886, allocations: 417.7 kB / 0.6324 GB, free: 9.574 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009743/0.6896, allocations: 0.6171 MB / 0.633 GB, free: 8.863 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009271/0.6906, allocations: 477.9 kB / 0.6334 GB, free: 8.398 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.6906, allocations: 4 kB / 0.6335 GB, free: 8.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002735/0.6933, allocations: 1.366 MB / 0.6348 GB, free: 7.02 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.6944, allocations: 2.432 MB / 0.6372 GB, free: 4.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.6944, allocations: 11.94 kB / 0.6372 GB, free: 4.383 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003242/0.6977, allocations: 0.6992 MB / 0.6379 GB, free: 3.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006116/0.6983, allocations: 171.7 kB / 0.638 GB, free: 3.512 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.6999, allocations: 1.298 MB / 0.6393 GB, free: 2.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008783/0.7008, allocations: 99.83 kB / 0.6394 GB, free: 2.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.511e-05/0.7009, allocations: 43.98 kB / 0.6394 GB, free: 2.047 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.7009, allocations: 8 kB / 0.6394 GB, free: 2.039 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002556/0.7035, allocations: 1.24 MB / 0.6406 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.7035, allocations: 4 kB / 0.6406 GB, free: 0.793 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.7052, allocations: 434.9 kB / 0.6411 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006015/0.7059, allocations: 175.8 kB / 0.6412 GB, free: 200 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.7071, allocations: 1.11 MB / 0.6423 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009527/0.7081, allocations: 99.89 kB / 0.6424 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.32e-05/0.7082, allocations: 39.98 kB / 0.6424 GB, free: 14.92 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007329/0.7089, allocations: 372.8 kB / 0.6428 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.7092, allocations: 86.97 kB / 0.6429 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0045/0.7137, allocations: 3.324 MB / 0.6461 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.856e-05/0.7137, allocations: 39.94 kB / 0.6462 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.7138, allocations: 4 kB / 0.6462 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003325/0.7171, allocations: 2.782 MB / 0.6489 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006431/0.7235, allocations: 4.572 MB / 0.6534 GB, free: 3.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/0.7236, allocations: 4 kB / 0.6534 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006941/0.7243, allocations: 167.8 kB / 0.6535 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00039/0.7247, allocations: 104.7 kB / 0.6536 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.378e-05/0.7248, allocations: 23.92 kB / 0.6536 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004787/0.7252, allocations: 0.6499 MB / 0.6543 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.7253, allocations: 3.953 kB / 0.6543 GB, free: 2.621 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004312/0.7296, allocations: 2.929 MB / 0.6571 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000845/0.7304, allocations: 458.3 kB / 0.6576 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.7306, allocations: 16 kB / 0.6576 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007075/0.7313, allocations: 83.83 kB / 0.6577 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.7315, allocations: 60.56 kB / 0.6577 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.7315, allocations: 23.98 kB / 0.6577 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001139/0.7327, allocations: 0.7902 MB / 0.6585 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7327, allocations: 4 kB / 0.6585 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005615/0.7383, allocations: 1.652 MB / 0.6601 GB, free: 12.56 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01148/0.7498, allocations: 5.098 MB / 0.6651 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003699/0.7536, allocations: 1.848 MB / 0.6669 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.7536, allocations: 0 / 0.6669 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.7549, allocations: 0.8961 MB / 0.6678 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.7574, allocations: 465 kB / 0.6682 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009651/0.7671, allocations: 9.095 MB / 0.6771 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.768, allocations: 1.341 MB / 0.6784 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00165/0.7696, allocations: 0.9036 MB / 0.6793 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006481/0.7703, allocations: 0.5579 MB / 0.6799 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of SimCode: time 9.72e-07/0.7703, allocations: 0 / 0.6799 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3503/1.121, allocations: 71.15 MB / 0.7493 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001664/1.121, allocations: 272.4 kB / 0.7496 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.945/6.065, allocations: 0 / 0.7496 GB, free: 153.2 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat does not exist to compare? outputFormat=mat