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/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.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/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000796/0.0007962, allocations: 90.98 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 45.16 MB / 383.8 MB, free: 212 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.632e-05/1.635e-05, allocations: 4 kB / 453.3 MB, free: 75.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1206, allocations: 63.25 MB / 0.5045 GB, free: 12.51 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.981/7.102, allocations: 2.799 GB / 3.304 GB, free: 43.78 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/7.102, allocations: 94.31 kB / 3.304 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.947/9.049, allocations: 0.4912 GB / 3.795 GB, free: 67.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.773e-06/9.049, allocations: 0 / 3.795 GB, free: 67.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.901e-05/9.05, allocations: 20.25 kB / 3.795 GB, free: 67.11 MB / 0.5417 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.006861/9.056, allocations: 1.708 MB / 3.797 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/9.056, allocations: 12.47 kB / 3.797 GB, free: 66.5 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/9.058, allocations: 238.2 kB / 3.797 GB, free: 66.45 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/9.06, allocations: 0.5761 MB / 3.797 GB, free: 66.22 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/9.06, allocations: 90.97 kB / 3.797 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/9.06, allocations: 37.94 kB / 3.798 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001413/9.061, allocations: 0.6261 MB / 3.798 GB, free: 66.16 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/9.062, allocations: 0.8774 MB / 3.799 GB, free: 65.83 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/9.062, allocations: 2.719 kB / 3.799 GB, free: 65.83 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/9.062, allocations: 11.8 kB / 3.799 GB, free: 65.83 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-05/9.062, allocations: 46.03 kB / 3.799 GB, free: 65.83 MB / 0.5417 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.145/9.207, allocations: 74.35 MB / 3.872 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006824/9.208, allocations: 342 kB / 3.872 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/9.208, allocations: 150.6 kB / 3.872 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09807/9.307, allocations: 52.48 MB / 3.923 GB, free: 29.73 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.572e-05/9.307, allocations: 37.56 kB / 3.923 GB, free: 29.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=31): time 3.437e-06/9.307, allocations: 3 kB / 3.923 GB, free: 29.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=36): time 0.005544/9.312, allocations: 1.613 MB / 3.925 GB, free: 29.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/9.312, allocations: 132.4 kB / 3.925 GB, free: 29.15 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/9.313, allocations: 492.6 kB / 3.926 GB, free: 29.03 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.952e-05/9.313, allocations: 25.7 kB / 3.926 GB, free: 29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/9.313, allocations: 444.3 kB / 3.926 GB, free: 28.73 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/9.313, allocations: 131.8 kB / 3.926 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/9.314, allocations: 0 / 3.926 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001496/9.314, allocations: 370 kB / 3.927 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/9.314, allocations: 205 kB / 3.927 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/9.314, allocations: 0.5597 MB / 3.927 GB, free: 27.88 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/9.315, allocations: 422.2 kB / 3.928 GB, free: 27.86 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/9.315, allocations: 3.781 kB / 3.928 GB, free: 27.86 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001871/9.317, allocations: 0.8774 MB / 3.929 GB, free: 27.78 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/9.317, allocations: 11.25 kB / 3.929 GB, free: 27.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/9.317, allocations: 11.44 kB / 3.929 GB, free: 27.78 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002263/9.318, allocations: 72.3 kB / 3.929 GB, free: 27.77 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/9.319, allocations: 290.1 kB / 3.929 GB, free: 27.76 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/9.321, allocations: 2.055 MB / 3.931 GB, free: 25.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006616/9.321, allocations: 49.22 kB / 3.931 GB, free: 25.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/9.322, allocations: 39.44 kB / 3.931 GB, free: 25.98 MB / 0.5886 GB 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],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete 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.0001719/9.322, allocations: 144.2 kB / 3.931 GB, free: 25.86 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001234/9.323, allocations: 0.5232 MB / 3.932 GB, free: 25.78 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.715e-05/9.323, allocations: 66 kB / 3.932 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/9.325, allocations: 1.498 MB / 3.933 GB, free: 25.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/9.325, allocations: 23.12 kB / 3.933 GB, free: 25.57 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/9.325, allocations: 0 / 3.933 GB, free: 25.57 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/9.325, allocations: 4 kB / 3.933 GB, free: 25.57 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/9.327, allocations: 2.357 MB / 3.935 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/9.327, allocations: 0 / 3.935 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/9.328, allocations: 171.5 kB / 3.936 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002615/9.328, allocations: 119.3 kB / 3.936 GB, free: 25.14 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/9.328, allocations: 4.969 kB / 3.936 GB, free: 25.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/9.33, allocations: 2.088 MB / 3.938 GB, free: 23.35 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/9.33, allocations: 4.219 kB / 3.938 GB, free: 23.35 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/9.331, allocations: 1.514 MB / 3.939 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/9.332, allocations: 200.1 kB / 3.939 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.793e-05/9.332, allocations: 3.953 kB / 3.939 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/9.332, allocations: 32.19 kB / 3.94 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/9.332, allocations: 29.2 kB / 3.94 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/9.332, allocations: 12.41 kB / 3.94 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003886/9.333, allocations: 354.5 kB / 3.94 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.5e-07/9.333, allocations: 0 / 3.94 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.005552/9.338, allocations: 1.1 MB / 3.941 GB, free: 22.73 MB / 0.5886 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.T) * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.007536/9.346, allocations: 3.616 MB / 3.944 GB, free: 21.72 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001543/9.347, allocations: 0.8024 MB / 3.945 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/9.347, allocations: 0 / 3.945 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008952/9.348, allocations: 0.5356 MB / 3.946 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/9.35, allocations: 268.8 kB / 3.946 GB, free: 21.68 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004504/9.354, allocations: 1.895 MB / 3.948 GB, free: 21.11 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005719/9.355, allocations: 1.053 MB / 3.949 GB, free: 20.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0007427/9.355, allocations: 427.3 kB / 3.949 GB, free: 20.37 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/9.356, allocations: 313.2 kB / 3.95 GB, free: 20.36 MB / 0.5886 GB Notification: Performance of SimCode: time 2.725e-06/9.356, allocations: 0 / 3.95 GB, free: 20.36 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06652/9.422, allocations: 41.71 MB / 3.99 GB, free: 2.559 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/9.423, allocations: 199.8 kB / 3.991 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.136/12.56, allocations: 0 / 3.991 GB, free: 2.359 MB / 0.5886 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