Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009611/0.000961, allocations: 96.73 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 194.8 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 45.92 MB / 344.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.000274, allocations: 11.94 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1174, allocations: 63.47 MB / 481.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.0359/0.1533, allocations: 36.68 MB / 0.5062 GB, free: 480 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2662/0.4195, allocations: 18.85 MB / 0.5246 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.4206, allocations: 29.12 kB / 0.5246 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.4217, allocations: 368.7 kB / 0.525 GB, free: 11.84 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01619/0.4379, allocations: 4.081 MB / 0.529 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007781/0.4457, allocations: 2.027 MB / 0.5309 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003929/0.4496, allocations: 2.359 MB / 0.5333 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.4509, allocations: 398.5 kB / 0.5336 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01338/0.4643, allocations: 6.411 MB / 0.5399 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01324/0.4776, allocations: 9.113 MB / 0.5488 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002013/0.4778, allocations: 36 kB / 0.5488 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01413/0.4919, allocations: 6.833 MB / 0.5555 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006492/0.4927, allocations: 238.9 kB / 0.5557 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005654/0.4932, allocations: 189.3 kB / 0.5559 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007881/0.5011, allocations: 3.386 MB / 0.5592 GB, free: 8.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.5012, allocations: 3.938 kB / 0.5592 GB, free: 8.953 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5012, allocations: 0 / 0.5592 GB, free: 8.953 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.5012, allocations: 0 / 0.5592 GB, free: 8.953 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004815/0.506, allocations: 1.473 MB / 0.5607 GB, free: 7.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.065e-05/0.5061, allocations: 8.562 kB / 0.5607 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/0.5063, allocations: 118.5 kB / 0.5608 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/0.5078, allocations: 218.8 kB / 0.561 GB, free: 7.098 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009443/0.5087, allocations: 0.5237 MB / 0.5615 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.5089, allocations: 116.5 kB / 0.5616 GB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.762e-05/0.509, allocations: 60 kB / 0.5617 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.5109, allocations: 1.067 MB / 0.5627 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.5109, allocations: 7.938 kB / 0.5627 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.511, allocations: 28 kB / 0.5627 GB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-05/0.5111, allocations: 40.98 kB / 0.5628 GB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.5127, allocations: 0.8192 MB / 0.5636 GB, free: 4.312 MB / 398.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.005629/0.5183, allocations: 5.566 MB / 0.569 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.5196, allocations: 0.5232 MB / 0.5695 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000364/0.52, allocations: 210.5 kB / 0.5697 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08676/0.6068, allocations: 53.02 MB / 0.6215 GB, free: 2.016 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.711e-05/0.6069, allocations: 42.56 kB / 0.6215 GB, free: 1.965 MB / 462.1 MB Notification: Performance of pre-optimization done (n=39): time 2.475e-06/0.6069, allocations: 0 / 0.6215 GB, free: 1.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.006181/0.6131, allocations: 2.123 MB / 0.6236 GB, free: 15.79 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.6132, allocations: 195.9 kB / 0.6238 GB, free: 15.55 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000833/0.614, allocations: 0.6289 MB / 0.6244 GB, free: 14.92 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.6141, allocations: 37.7 kB / 0.6245 GB, free: 14.88 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.6144, allocations: 402.8 kB / 0.6248 GB, free: 14.48 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.6146, allocations: 165 kB / 0.625 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/0.6146, allocations: 16 kB / 0.625 GB, free: 14.31 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.6148, allocations: 378.8 kB / 0.6254 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.6152, allocations: 229.9 kB / 0.6256 GB, free: 13.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006935/0.6159, allocations: 0.5899 MB / 0.6262 GB, free: 12.94 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.6164, allocations: 339.6 kB / 0.6265 GB, free: 12.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6164, allocations: 4 kB / 0.6265 GB, free: 12.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001424/0.6179, allocations: 0.8918 MB / 0.6274 GB, free: 11.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.6179, allocations: 11.98 kB / 0.6274 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.6179, allocations: 12 kB / 0.6274 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/0.6207, allocations: 269 kB / 0.6276 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.6218, allocations: 287.5 kB / 0.6279 GB, free: 11.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.6234, allocations: 2.019 MB / 0.6299 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.624, allocations: 60.06 kB / 0.6299 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-05/0.6241, allocations: 39.95 kB / 0.63 GB, free: 8.859 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.000383/0.6244, allocations: 277.5 kB / 0.6302 GB, free: 8.578 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.6246, allocations: 75.09 kB / 0.6303 GB, free: 8.504 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002178/0.6268, allocations: 2.03 MB / 0.6323 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.6268, allocations: 23.95 kB / 0.6323 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.6268, allocations: 0 / 0.6323 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.6268, allocations: 0 / 0.6323 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00316/0.63, allocations: 3.004 MB / 0.6353 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.63, allocations: 0 / 0.6353 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008569/0.6309, allocations: 187.8 kB / 0.6354 GB, free: 3.184 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.6325, allocations: 307.9 kB / 0.6357 GB, free: 2.879 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.6325, allocations: 8 kB / 0.6357 GB, free: 2.871 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.634, allocations: 2.081 MB / 0.6378 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.634, allocations: 0 / 0.6378 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.6361, allocations: 1.947 MB / 0.6397 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003984/0.6365, allocations: 283.3 kB / 0.6399 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.6366, allocations: 8 kB / 0.64 GB, free: 14.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.6371, allocations: 43.89 kB / 0.64 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.859e-05/0.6372, allocations: 36.33 kB / 0.64 GB, free: 14.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.903e-05/0.6372, allocations: 19.98 kB / 0.64 GB, free: 14.26 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007362/0.638, allocations: 0.5654 MB / 0.6406 GB, free: 13.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.638, allocations: 0 / 0.6406 GB, free: 13.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00313/0.6411, allocations: 1.097 MB / 0.6417 GB, free: 12.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007173/0.6483, allocations: 3.591 MB / 0.6452 GB, free: 9.082 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.6503, allocations: 0.9082 MB / 0.6461 GB, free: 8.176 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6503, allocations: 0.9375 kB / 0.6461 GB, free: 8.176 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.6516, allocations: 0.6476 MB / 0.6467 GB, free: 7.531 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.6538, allocations: 385.9 kB / 0.6471 GB, free: 7.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.6641, allocations: 5.801 MB / 0.6527 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000747/0.6649, allocations: 1.097 MB / 0.6538 GB, free: 24 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009984/0.6659, allocations: 350.2 kB / 0.6541 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004946/0.6664, allocations: 379.3 kB / 0.6545 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of SimCode: time 1.142e-06/0.6664, allocations: 0 / 0.6545 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09464/0.7611, allocations: 54.75 MB / 0.708 GB, free: 8.828 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.7613, allocations: 273.1 kB / 0.7082 GB, free: 8.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.702/5.463, allocations: 0 / 0.7082 GB, free: 8.477 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat