Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.00167/0.00167, allocations: 200.6 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.444/1.444, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008186/0.0008185, allocations: 98.39 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2409/0.2409, allocations: 45.14 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.953e-05/1.956e-05, allocations: 0 / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1466, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.338/2.484, allocations: 0.7933 GB / 1.298 GB, free: 49.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/2.485, allocations: 92.12 kB / 1.298 GB, free: 49.64 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.789/5.273, allocations: 0.7215 GB / 2.019 GB, free: 89.89 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.463e-06/5.273, allocations: 0 / 2.019 GB, free: 89.89 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.297e-05/5.273, allocations: 25.97 kB / 2.019 GB, free: 89.89 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003923/5.277, allocations: 1.403 MB / 2.021 GB, free: 89.39 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/5.277, allocations: 13.14 kB / 2.021 GB, free: 89.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001398/5.279, allocations: 285.5 kB / 2.021 GB, free: 89.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/5.28, allocations: 0.6677 MB / 2.022 GB, free: 89.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.485e-05/5.28, allocations: 95.52 kB / 2.022 GB, free: 89.04 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/5.28, allocations: 38.53 kB / 2.022 GB, free: 89.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001173/5.282, allocations: 0.8667 MB / 2.023 GB, free: 89.04 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/5.283, allocations: 1.129 MB / 2.024 GB, free: 88.8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/5.283, allocations: 7.406 kB / 2.024 GB, free: 88.8 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.861e-05/5.283, allocations: 9.797 kB / 2.024 GB, free: 88.8 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.589e-05/5.283, allocations: 67.7 kB / 2.024 GB, free: 88.8 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.005109/5.288, allocations: 4.741 MB / 2.029 GB, free: 86.07 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/5.289, allocations: 250.2 kB / 2.029 GB, free: 86.04 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/5.289, allocations: 135.6 kB / 2.029 GB, free: 86.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001691/5.289, allocations: 262.5 kB / 2.029 GB, free: 85.75 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/5.289, allocations: 42.08 kB / 2.029 GB, free: 85.71 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/5.289, allocations: 0 / 2.029 GB, free: 85.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.005591/5.295, allocations: 1.64 MB / 2.031 GB, free: 85.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/5.295, allocations: 132.3 kB / 2.031 GB, free: 84.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007644/5.295, allocations: 0.6591 MB / 2.032 GB, free: 84.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/5.295, allocations: 29.67 kB / 2.032 GB, free: 84.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003062/5.296, allocations: 0.5693 MB / 2.032 GB, free: 84.49 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.309e-05/5.296, allocations: 132 kB / 2.032 GB, free: 84.43 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/5.296, allocations: 0 / 2.032 GB, free: 84.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001132/5.296, allocations: 392.1 kB / 2.033 GB, free: 84.12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/5.296, allocations: 239.6 kB / 2.033 GB, free: 84.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006762/5.297, allocations: 0.8262 MB / 2.034 GB, free: 83.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006834/5.298, allocations: 451.1 kB / 2.034 GB, free: 83.37 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/5.298, allocations: 7.438 kB / 2.034 GB, free: 83.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00169/5.299, allocations: 1.1 MB / 2.035 GB, free: 83.28 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/5.3, allocations: 13.25 kB / 2.035 GB, free: 83.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/5.3, allocations: 20.09 kB / 2.035 GB, free: 83.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/5.301, allocations: 264.8 kB / 2.035 GB, free: 83.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000513/5.301, allocations: 202.9 kB / 2.036 GB, free: 83.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007745/5.302, allocations: 0.9168 MB / 2.037 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007918/5.303, allocations: 44.81 kB / 2.037 GB, free: 82.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/5.303, allocations: 70.47 kB / 2.037 GB, free: 82.74 MB / 0.5417 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.0001673/5.303, allocations: 151.7 kB / 2.037 GB, free: 82.63 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000635/5.304, allocations: 412.5 kB / 2.037 GB, free: 82.55 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.245e-05/5.304, allocations: 83.2 kB / 2.037 GB, free: 82.51 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007847/5.304, allocations: 487.2 kB / 2.038 GB, free: 82.44 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/5.305, allocations: 7.094 kB / 2.038 GB, free: 82.44 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/5.305, allocations: 0 / 2.038 GB, free: 82.44 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/5.305, allocations: 9.531 kB / 2.038 GB, free: 82.43 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/5.306, allocations: 1.031 MB / 2.039 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/5.306, allocations: 0 / 2.039 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009216/5.307, allocations: 180.9 kB / 2.039 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-05/5.307, allocations: 31.17 kB / 2.039 GB, free: 82.13 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/5.307, allocations: 5.297 kB / 2.039 GB, free: 82.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/5.308, allocations: 2.579 MB / 2.042 GB, free: 79.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/5.308, allocations: 0 / 2.042 GB, free: 79.68 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007187/5.309, allocations: 0.6677 MB / 2.042 GB, free: 79.47 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/5.309, allocations: 195.2 kB / 2.042 GB, free: 79.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.971e-05/5.309, allocations: 3.625 kB / 2.042 GB, free: 79.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/5.31, allocations: 16.86 kB / 2.042 GB, free: 79.34 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/5.31, allocations: 29.62 kB / 2.042 GB, free: 79.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/5.31, allocations: 21.14 kB / 2.042 GB, free: 79.34 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004827/5.31, allocations: 485.1 kB / 2.043 GB, free: 79.25 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.1e-07/5.31, allocations: 0 / 2.043 GB, free: 79.25 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001503/5.312, allocations: 428.3 kB / 2.043 GB, free: 79.22 MB / 0.5417 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.003299/5.315, allocations: 2.629 MB / 2.046 GB, free: 78.28 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001046/5.316, allocations: 0.6036 MB / 2.046 GB, free: 78.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/5.316, allocations: 2.062 kB / 2.046 GB, free: 78.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007535/5.317, allocations: 346 kB / 2.047 GB, free: 78.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/5.318, allocations: 309.2 kB / 2.047 GB, free: 78.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/5.321, allocations: 1.378 MB / 2.048 GB, free: 77.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/5.322, allocations: 1.05 MB / 2.049 GB, free: 77.08 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009796/5.323, allocations: 367.2 kB / 2.05 GB, free: 77.06 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/5.323, allocations: 318.3 kB / 2.05 GB, free: 77.05 MB / 0.5417 GB Notification: Performance of SimCode: time 6.72e-07/5.323, allocations: 0 / 2.05 GB, free: 77.05 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05579/5.379, allocations: 30.88 MB / 2.08 GB, free: 75.99 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/5.379, allocations: 227.5 kB / 2.08 GB, free: 75.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.04/8.419, allocations: 0 / 2.08 GB, free: 75.7 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat