Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000979/0.0009791, allocations: 171.2 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 221.5 MB / 230.7 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009353/0.0009353, allocations: 92.2 kB / 281.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2313/0.2313, allocations: 44.14 MB / 376.5 MB, free: 3.066 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.708e-05, allocations: 7.984 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1622, allocations: 61.91 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.304/2.467, allocations: 0.7923 GB / 1.287 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/2.467, allocations: 93.44 kB / 1.287 GB, free: 3.93 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.832/5.299, allocations: 0.7172 GB / 2.004 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.944e-06/5.299, allocations: 3.594 kB / 2.004 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.461e-05/5.299, allocations: 23.52 kB / 2.004 GB, free: 85.19 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004162/5.303, allocations: 1.403 MB / 2.006 GB, free: 83.76 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/5.303, allocations: 11.98 kB / 2.006 GB, free: 83.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/5.304, allocations: 282.5 kB / 2.006 GB, free: 83.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/5.306, allocations: 0.6754 MB / 2.007 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.858e-05/5.306, allocations: 89.39 kB / 2.007 GB, free: 82.68 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/5.306, allocations: 40 kB / 2.007 GB, free: 82.64 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001277/5.307, allocations: 0.8746 MB / 2.008 GB, free: 81.76 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/5.309, allocations: 1.133 MB / 2.009 GB, free: 80.56 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/5.309, allocations: 3.906 kB / 2.009 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/5.309, allocations: 4 kB / 2.009 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.36e-05/5.309, allocations: 69.22 kB / 2.009 GB, free: 80.49 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.005427/5.314, allocations: 4.711 MB / 2.014 GB, free: 75.54 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003317/5.315, allocations: 250.8 kB / 2.014 GB, free: 75.29 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/5.315, allocations: 129.3 kB / 2.014 GB, free: 75.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001967/5.315, allocations: 271.4 kB / 2.014 GB, free: 74.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/5.315, allocations: 42.73 kB / 2.014 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 1.974e-06/5.315, allocations: 0 / 2.014 GB, free: 74.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=33): time 0.006988/5.322, allocations: 1.64 MB / 2.016 GB, free: 73.08 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/5.322, allocations: 132.5 kB / 2.016 GB, free: 72.92 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/5.323, allocations: 0.656 MB / 2.017 GB, free: 72.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.649e-05/5.323, allocations: 29.7 kB / 2.017 GB, free: 72.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/5.324, allocations: 0.5706 MB / 2.017 GB, free: 71.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/5.324, allocations: 130.3 kB / 2.017 GB, free: 71.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/5.324, allocations: 3.172 kB / 2.017 GB, free: 71.51 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001303/5.324, allocations: 386.8 kB / 2.018 GB, free: 71.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/5.324, allocations: 246.5 kB / 2.018 GB, free: 70.88 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005848/5.325, allocations: 0.8176 MB / 2.019 GB, free: 69.78 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007331/5.326, allocations: 460.4 kB / 2.019 GB, free: 69.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.23e-05/5.326, allocations: 8 kB / 2.019 GB, free: 69.32 MB / 0.5261 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002038/5.328, allocations: 1.087 MB / 2.02 GB, free: 68.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/5.328, allocations: 18.19 kB / 2.02 GB, free: 68.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/5.328, allocations: 23.95 kB / 2.02 GB, free: 68.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/5.329, allocations: 262.9 kB / 2.02 GB, free: 67.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006025/5.33, allocations: 203.6 kB / 2.021 GB, free: 67.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009686/5.331, allocations: 0.9194 MB / 2.022 GB, free: 66.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/5.332, allocations: 43.98 kB / 2.022 GB, free: 66.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001187/5.332, allocations: 71.98 kB / 2.022 GB, free: 66.67 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002324/5.332, allocations: 152.5 kB / 2.022 GB, free: 66.52 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000786/5.333, allocations: 413.3 kB / 2.022 GB, free: 66.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/5.333, allocations: 79.06 kB / 2.022 GB, free: 66.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009227/5.334, allocations: 492.2 kB / 2.023 GB, free: 65.53 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/5.334, allocations: 4 kB / 2.023 GB, free: 65.53 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/5.334, allocations: 11.98 kB / 2.023 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/5.334, allocations: 0 / 2.023 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/5.336, allocations: 1.032 MB / 2.024 GB, free: 64.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/5.336, allocations: 0 / 2.024 GB, free: 64.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009478/5.337, allocations: 191.8 kB / 2.024 GB, free: 64.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.096e-05/5.337, allocations: 20.84 kB / 2.024 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/5.337, allocations: 4 kB / 2.024 GB, free: 64.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/5.338, allocations: 2.573 MB / 2.026 GB, free: 61.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/5.338, allocations: 3.391 kB / 2.027 GB, free: 61.43 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/5.339, allocations: 0.6647 MB / 2.027 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/5.34, allocations: 196.2 kB / 2.027 GB, free: 60.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/5.34, allocations: 4 kB / 2.027 GB, free: 60.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/5.34, allocations: 19.89 kB / 2.027 GB, free: 60.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/5.34, allocations: 31.84 kB / 2.027 GB, free: 60.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.808e-05/5.34, allocations: 23.95 kB / 2.027 GB, free: 60.45 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0006324/5.341, allocations: 491.1 kB / 2.028 GB, free: 59.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.21e-07/5.341, allocations: 0 / 2.028 GB, free: 59.98 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002166/5.343, allocations: 427.8 kB / 2.028 GB, free: 59.56 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005235/5.349, allocations: 2.622 MB / 2.031 GB, free: 57.09 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001704/5.35, allocations: 0.6031 MB / 2.031 GB, free: 56.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/5.35, allocations: 0 / 2.031 GB, free: 56.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008108/5.351, allocations: 342.8 kB / 2.032 GB, free: 56.15 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/5.353, allocations: 320.5 kB / 2.032 GB, free: 55.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004024/5.357, allocations: 1.37 MB / 2.033 GB, free: 54.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/5.358, allocations: 1.043 MB / 2.034 GB, free: 53.38 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001215/5.359, allocations: 366 kB / 2.035 GB, free: 53.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004729/5.359, allocations: 318.1 kB / 2.035 GB, free: 52.71 MB / 0.5261 GB Notification: Performance of SimCode: time 1.313e-06/5.359, allocations: 0 / 2.035 GB, free: 52.71 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06497/5.424, allocations: 30.85 MB / 2.065 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/5.425, allocations: 232.3 kB / 2.065 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.284/8.708, allocations: 0 / 2.065 GB, free: 21.84 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat