Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009281/0.0009281, allocations: 95.09 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2327/0.2327, allocations: 45.15 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.673e-05/1.674e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1265, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.763/6.889, allocations: 2.801 GB / 3.305 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/6.89, allocations: 97.78 kB / 3.305 GB, free: 114.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.678/8.568, allocations: 0.4935 GB / 3.799 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.522e-06/8.568, allocations: 4 kB / 3.799 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.139e-05/8.568, allocations: 23.48 kB / 3.799 GB, free: 13.33 MB / 0.5261 GB 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.005905/8.574, allocations: 1.725 MB / 3.801 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/8.574, allocations: 8.031 kB / 3.801 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/8.576, allocations: 329.9 kB / 3.801 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/8.577, allocations: 0.6 MB / 3.802 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-05/8.577, allocations: 92.7 kB / 3.802 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.938e-05/8.577, allocations: 36 kB / 3.802 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000838/8.578, allocations: 0.639 MB / 3.802 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/8.579, allocations: 0.8999 MB / 3.803 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/8.579, allocations: 0 / 3.803 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.775e-05/8.579, allocations: 4 kB / 3.803 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-05/8.579, allocations: 45.23 kB / 3.803 GB, free: 8.797 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.4979/9.077, allocations: 91.9 MB / 3.893 GB, free: 23.66 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005478/9.078, allocations: 370.9 kB / 3.893 GB, free: 23.63 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/9.078, allocations: 159.5 kB / 3.893 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0767/9.154, allocations: 42.89 MB / 3.935 GB, free: 27.27 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/9.155, allocations: 48.19 kB / 3.935 GB, free: 27.23 MB / 0.573 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/9.155, allocations: 1.312 kB / 3.935 GB, free: 27.23 MB / 0.573 GB Notification: Performance of matching and sorting (n=37): time 0.00356/9.158, allocations: 1.376 MB / 3.937 GB, free: 26.86 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/9.158, allocations: 132.4 kB / 3.937 GB, free: 26.7 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/9.159, allocations: 486.3 kB / 3.937 GB, free: 26.59 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/9.159, allocations: 28.7 kB / 3.937 GB, free: 26.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/9.159, allocations: 426.6 kB / 3.938 GB, free: 26.35 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 9.612e-05/9.159, allocations: 135 kB / 3.938 GB, free: 26.29 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/9.159, allocations: 0 / 3.938 GB, free: 26.29 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001931/9.159, allocations: 376.9 kB / 3.938 GB, free: 25.97 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/9.16, allocations: 196 kB / 3.938 GB, free: 25.96 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/9.16, allocations: 0.5273 MB / 3.939 GB, free: 25.54 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/9.161, allocations: 311.5 kB / 3.939 GB, free: 25.52 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/9.161, allocations: 3.594 kB / 3.939 GB, free: 25.52 MB / 0.573 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00116/9.162, allocations: 0.7582 MB / 3.94 GB, free: 25.43 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/9.162, allocations: 11.34 kB / 3.94 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/9.162, allocations: 14.34 kB / 3.94 GB, free: 25.43 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/9.162, allocations: 61 kB / 3.94 GB, free: 25.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/9.163, allocations: 288.2 kB / 3.94 GB, free: 25.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/9.165, allocations: 1.93 MB / 3.942 GB, free: 23.64 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/9.165, allocations: 44.3 kB / 3.942 GB, free: 23.63 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/9.165, allocations: 41.06 kB / 3.942 GB, free: 23.63 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000189/9.166, allocations: 138.2 kB / 3.942 GB, free: 23.52 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006716/9.166, allocations: 429.6 kB / 3.943 GB, free: 23.44 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.28e-05/9.166, allocations: 61.88 kB / 3.943 GB, free: 23.41 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/9.168, allocations: 1.59 MB / 3.944 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/9.168, allocations: 29.05 kB / 3.945 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/9.168, allocations: 0 / 3.945 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/9.168, allocations: 3.219 kB / 3.945 GB, free: 23.21 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/9.17, allocations: 2.45 MB / 3.947 GB, free: 22.82 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/9.17, allocations: 0 / 3.947 GB, free: 22.82 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008226/9.171, allocations: 177.3 kB / 3.947 GB, free: 22.82 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002301/9.171, allocations: 81.12 kB / 3.947 GB, free: 22.81 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.5e-05/9.171, allocations: 3.625 kB / 3.947 GB, free: 22.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001402/9.173, allocations: 1.977 MB / 3.949 GB, free: 21.02 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/9.173, allocations: 4.25 kB / 3.949 GB, free: 21.02 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/9.174, allocations: 1.515 MB / 3.951 GB, free: 20.79 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/9.175, allocations: 218 kB / 3.951 GB, free: 20.65 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.667e-05/9.175, allocations: 0 / 3.951 GB, free: 20.65 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/9.175, allocations: 47.88 kB / 3.951 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/9.175, allocations: 26.08 kB / 3.951 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/9.175, allocations: 19.12 kB / 3.951 GB, free: 20.64 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003938/9.176, allocations: 349.4 kB / 3.951 GB, free: 20.55 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/9.176, allocations: 4 kB / 3.951 GB, free: 20.55 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.005381/9.181, allocations: 1.093 MB / 3.952 GB, free: 20.55 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009389/9.191, allocations: 3.617 MB / 3.956 GB, free: 19.7 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001752/9.192, allocations: 0.7878 MB / 3.957 GB, free: 19.68 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/9.192, allocations: 0 / 3.957 GB, free: 19.68 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00094/9.193, allocations: 0.5324 MB / 3.957 GB, free: 19.67 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/9.195, allocations: 270.9 kB / 3.957 GB, free: 19.66 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/9.201, allocations: 1.935 MB / 3.959 GB, free: 19.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006327/9.202, allocations: 1.067 MB / 3.96 GB, free: 18.49 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0009074/9.202, allocations: 0.499 MB / 3.961 GB, free: 18.46 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/9.203, allocations: 327.7 kB / 3.961 GB, free: 18.46 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/9.203, allocations: 0 / 3.961 GB, free: 18.46 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06985/9.273, allocations: 42.36 MB / 4.002 GB, free: 15.78 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001983/9.273, allocations: 201.3 kB / 4.003 GB, free: 15.51 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.175/12.45, allocations: 4 kB / 4.003 GB, free: 15.5 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat