Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002403/0.002403, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.288/2.288, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 89.94 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2987/0.2987, allocations: 43.49 MB / 353.6 MB, free: 2.254 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.33e-05/2.326e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4537/0.4537, allocations: 58.84 MB / 477.2 MB, free: 5.289 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.775/9.229, allocations: 2.795 GB / 3.261 GB, free: 96.18 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003464/9.229, allocations: 93.14 kB / 3.261 GB, free: 96.18 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 2.45/11.68, allocations: 0.4884 GB / 3.749 GB, free: 60.19 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.335e-06/11.68, allocations: 0 / 3.749 GB, free: 60.19 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 9.982e-05/11.68, allocations: 24.48 kB / 3.749 GB, free: 60.19 MB / 0.5108 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.01029/11.69, allocations: 1.718 MB / 3.751 GB, free: 59.39 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 6.198e-05/11.69, allocations: 11.75 kB / 3.751 GB, free: 59.39 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004966/11.69, allocations: 323.5 kB / 3.751 GB, free: 59.35 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003316/11.7, allocations: 0.6001 MB / 3.752 GB, free: 59.09 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003731/11.7, allocations: 94.84 kB / 3.752 GB, free: 59.02 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003606/11.7, allocations: 39.98 kB / 3.752 GB, free: 59.02 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003699/11.7, allocations: 0.6443 MB / 3.753 GB, free: 59.02 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004299/11.71, allocations: 0.8824 MB / 3.754 GB, free: 58.72 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-05/11.71, allocations: 10.22 kB / 3.754 GB, free: 58.72 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/11.71, allocations: 7.703 kB / 3.754 GB, free: 58.71 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/11.71, allocations: 48.84 kB / 3.754 GB, free: 58.71 MB / 0.5108 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.2844/11.99, allocations: 83.08 MB / 3.835 GB, free: 35.07 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009601/11.99, allocations: 368.6 kB / 3.835 GB, free: 34.73 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/11.99, allocations: 156.9 kB / 3.835 GB, free: 34.59 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5425/12.54, allocations: 38.47 MB / 3.873 GB, free: 92.02 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.278e-05/12.54, allocations: 43.09 kB / 3.873 GB, free: 91.98 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=33): time 3.647e-06/12.54, allocations: 0 / 3.873 GB, free: 91.98 MB / 0.5421 GB Notification: Performance of matching and sorting (n=37): time 0.01111/12.55, allocations: 1.37 MB / 3.874 GB, free: 91.66 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.221e-05/12.55, allocations: 137.4 kB / 3.874 GB, free: 91.5 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/12.55, allocations: 490.4 kB / 3.875 GB, free: 91.39 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.0002729/12.55, allocations: 25.7 kB / 3.875 GB, free: 91.36 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006246/12.55, allocations: 471.3 kB / 3.875 GB, free: 91.08 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003528/12.55, allocations: 133.5 kB / 3.876 GB, free: 91.02 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.053e-05/12.55, allocations: 1.281 kB / 3.876 GB, free: 91.02 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.0001593/12.55, allocations: 337.6 kB / 3.876 GB, free: 90.71 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/12.55, allocations: 198.4 kB / 3.876 GB, free: 90.71 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/12.55, allocations: 0.5317 MB / 3.877 GB, free: 90.29 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/12.56, allocations: 312 kB / 3.877 GB, free: 90.29 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-05/12.56, allocations: 4.438 kB / 3.877 GB, free: 90.29 MB / 0.5421 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.005378/12.56, allocations: 0.7321 MB / 3.878 GB, free: 90.22 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/12.56, allocations: 9.375 kB / 3.878 GB, free: 90.22 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.263e-05/12.56, allocations: 13.72 kB / 3.878 GB, free: 90.22 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007608/12.56, allocations: 56.02 kB / 3.878 GB, free: 90.21 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003278/12.57, allocations: 282.2 kB / 3.878 GB, free: 90.21 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001931/12.57, allocations: 1.938 MB / 3.88 GB, free: 88.44 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/12.57, allocations: 46.05 kB / 3.88 GB, free: 88.44 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/12.57, allocations: 43.45 kB / 3.88 GB, free: 88.44 MB / 0.5421 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.000337/12.57, allocations: 144.6 kB / 3.88 GB, free: 88.33 MB / 0.5421 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001903/12.57, allocations: 426.3 kB / 3.88 GB, free: 88.25 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002794/12.57, allocations: 64.62 kB / 3.88 GB, free: 88.21 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003247/12.58, allocations: 1.586 MB / 3.882 GB, free: 88.03 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.466e-05/12.58, allocations: 21.44 kB / 3.882 GB, free: 88.03 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/12.58, allocations: 0 / 3.882 GB, free: 88.03 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/12.58, allocations: 8.438 kB / 3.882 GB, free: 88.02 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005486/12.58, allocations: 2.446 MB / 3.884 GB, free: 87.64 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/12.58, allocations: 0 / 3.884 GB, free: 87.64 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/12.58, allocations: 177.5 kB / 3.885 GB, free: 87.64 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004569/12.58, allocations: 81.81 kB / 3.885 GB, free: 87.63 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/12.58, allocations: 3.047 kB / 3.885 GB, free: 87.63 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00183/12.59, allocations: 1.983 MB / 3.887 GB, free: 85.85 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/12.59, allocations: 0.6562 kB / 3.887 GB, free: 85.85 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003197/12.59, allocations: 1.514 MB / 3.888 GB, free: 85.62 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006839/12.59, allocations: 219.8 kB / 3.888 GB, free: 85.48 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/12.59, allocations: 1.891 kB / 3.888 GB, free: 85.48 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/12.59, allocations: 48.02 kB / 3.888 GB, free: 85.48 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/12.59, allocations: 26.58 kB / 3.888 GB, free: 85.48 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.28e-05/12.59, allocations: 19.02 kB / 3.888 GB, free: 85.48 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.0007055/12.59, allocations: 349.5 kB / 3.889 GB, free: 85.39 MB / 0.5421 GB Notification: Performance of sort global known variables: time 7.92e-07/12.59, allocations: 0 / 3.889 GB, free: 85.39 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.006553/12.6, allocations: 1.084 MB / 3.89 GB, free: 85.38 MB / 0.5421 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.01446/12.61, allocations: 3.608 MB / 3.893 GB, free: 84.55 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.00273/12.62, allocations: 0.772 MB / 3.894 GB, free: 84.54 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/12.62, allocations: 6.906 kB / 3.894 GB, free: 84.54 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.001619/12.62, allocations: 0.5251 MB / 3.895 GB, free: 84.54 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/12.62, allocations: 259.3 kB / 3.895 GB, free: 84.54 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007799/12.63, allocations: 1.966 MB / 3.897 GB, free: 84.12 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006136/12.63, allocations: 1.07 MB / 3.898 GB, free: 83.42 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/12.63, allocations: 329.8 kB / 3.898 GB, free: 83.41 MB / 0.5421 GB Notification: Performance of SimCode: time 1.343e-06/12.63, allocations: 0 / 3.898 GB, free: 83.41 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.894/16.52, allocations: 42.59 MB / 3.94 GB, free: 81.01 MB / 0.5421 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat