Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001831/0.001831, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.87/1.87, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00129/0.00129, allocations: 86.62 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2338/0.2338, allocations: 43.48 MB / 353.2 MB, free: 292 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.866e-05/1.867e-05, allocations: 0 / 418.4 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1398, allocations: 58.86 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.847/7.986, allocations: 2.793 GB / 3.259 GB, free: 160.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/7.987, allocations: 96.14 kB / 3.259 GB, free: 160.3 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.75/9.736, allocations: 497.8 MB / 3.746 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.555e-06/9.737, allocations: 4 kB / 3.746 GB, free: 41.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.101e-05/9.737, allocations: 23.75 kB / 3.746 GB, free: 41.02 MB / 0.4948 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.01006/9.747, allocations: 1.698 MB / 3.747 GB, free: 39.32 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 8.807e-05/9.747, allocations: 8.031 kB / 3.747 GB, free: 39.32 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002194/9.749, allocations: 230.8 kB / 3.747 GB, free: 39.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/9.751, allocations: 0.5825 MB / 3.748 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/9.751, allocations: 96.55 kB / 3.748 GB, free: 38.38 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/9.751, allocations: 32 kB / 3.748 GB, free: 38.35 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001466/9.753, allocations: 0.6234 MB / 3.749 GB, free: 37.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/9.755, allocations: 0.8788 MB / 3.75 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/9.755, allocations: 3.938 kB / 3.75 GB, free: 36.74 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/9.755, allocations: 4.875 kB / 3.75 GB, free: 36.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.826e-05/9.755, allocations: 45.28 kB / 3.75 GB, free: 36.69 MB / 0.4948 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.5451/10.3, allocations: 67.78 MB / 3.816 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/10.3, allocations: 347.9 kB / 3.816 GB, free: 59.49 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003413/10.3, allocations: 152.3 kB / 3.816 GB, free: 59.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08912/10.39, allocations: 47.34 MB / 3.863 GB, free: 30.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/10.39, allocations: 43.92 kB / 3.863 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/10.39, allocations: 0 / 3.863 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=36): time 0.005415/10.4, allocations: 1.604 MB / 3.864 GB, free: 30.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/10.4, allocations: 131.9 kB / 3.864 GB, free: 29.92 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/10.4, allocations: 498.8 kB / 3.865 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/10.4, allocations: 28.52 kB / 3.865 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002341/10.4, allocations: 430.3 kB / 3.865 GB, free: 29.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/10.4, allocations: 138.1 kB / 3.865 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/10.4, allocations: 0 / 3.865 GB, free: 29.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001065/10.4, allocations: 367 kB / 3.866 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/10.4, allocations: 205.6 kB / 3.866 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004977/10.4, allocations: 0.5551 MB / 3.866 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/10.4, allocations: 421.5 kB / 3.867 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/10.4, allocations: 3.938 kB / 3.867 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001846/10.4, allocations: 0.8829 MB / 3.868 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/10.4, allocations: 11.19 kB / 3.868 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/10.4, allocations: 11.78 kB / 3.868 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002479/10.4, allocations: 72.58 kB / 3.868 GB, free: 28.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/10.4, allocations: 284.1 kB / 3.868 GB, free: 28.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/10.4, allocations: 2.069 MB / 3.87 GB, free: 26.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007504/10.41, allocations: 50.39 kB / 3.87 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.959e-05/10.41, allocations: 40.31 kB / 3.87 GB, free: 26.82 MB / 0.5105 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.0001866/10.41, allocations: 159.3 kB / 3.87 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00126/10.41, allocations: 0.513 MB / 3.871 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.622e-05/10.41, allocations: 62.44 kB / 3.871 GB, free: 26.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/10.41, allocations: 1.5 MB / 3.872 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/10.41, allocations: 21.72 kB / 3.872 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/10.41, allocations: 0 / 3.872 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/10.41, allocations: 7.703 kB / 3.872 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/10.41, allocations: 2.353 MB / 3.875 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/10.41, allocations: 0 / 3.875 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008547/10.41, allocations: 168.6 kB / 3.875 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003023/10.41, allocations: 114.2 kB / 3.875 GB, free: 26.03 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/10.41, allocations: 7.75 kB / 3.875 GB, free: 26.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/10.41, allocations: 2.086 MB / 3.877 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/10.41, allocations: 0 / 3.877 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/10.42, allocations: 1.517 MB / 3.878 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004043/10.42, allocations: 207.2 kB / 3.879 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/10.42, allocations: 0 / 3.879 GB, free: 23.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004056/10.42, allocations: 23.59 kB / 3.879 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.386e-05/10.42, allocations: 27.22 kB / 3.879 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/10.42, allocations: 17.98 kB / 3.879 GB, free: 23.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005329/10.42, allocations: 354.8 kB / 3.879 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.71e-07/10.42, allocations: 0 / 3.879 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006134/10.42, allocations: 1.086 MB / 3.88 GB, free: 23.77 MB / 0.5105 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.008953/10.43, allocations: 3.612 MB / 3.884 GB, free: 22.91 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001802/10.43, allocations: 0.7992 MB / 3.884 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/10.43, allocations: 3.906 kB / 3.884 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009218/10.44, allocations: 0.5391 MB / 3.885 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/10.44, allocations: 258.1 kB / 3.885 GB, free: 22.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00562/10.44, allocations: 1.883 MB / 3.887 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/10.44, allocations: 1.054 MB / 3.888 GB, free: 21.73 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0008744/10.44, allocations: 430 kB / 3.888 GB, free: 21.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/10.44, allocations: 317.5 kB / 3.889 GB, free: 21.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.483e-06/10.44, allocations: 0 / 3.889 GB, free: 21.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07982/10.52, allocations: 41.62 MB / 3.929 GB, free: 19.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/10.52, allocations: 192.7 kB / 3.93 GB, free: 19.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.342/13.87, allocations: 3.281 kB / 3.93 GB, free: 19.11 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat