Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",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.001525/0.001531, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.4 MB / 222.5 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001146, allocations: 94.91 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003882, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3312, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.012/2.344, allocations: 0.7117 GB / 1.078 GB, free: 41.01 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003712/2.344, allocations: 97.75 kB / 1.078 GB, free: 40.95 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.971/5.315, allocations: 0.5506 GB / 1.628 GB, free: 67.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.136e-06/5.315, allocations: 0 / 1.628 GB, free: 67.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.746e-05/5.315, allocations: 16.72 kB / 1.628 GB, free: 67.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003436/5.319, allocations: 1.006 MB / 1.629 GB, free: 66.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/5.319, allocations: 13.72 kB / 1.629 GB, free: 66.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000369/5.319, allocations: 120.8 kB / 1.629 GB, free: 66.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000957/5.32, allocations: 151 kB / 1.63 GB, free: 66.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/5.322, allocations: 476.3 kB / 1.63 GB, free: 66.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/5.322, allocations: 53.97 kB / 1.63 GB, free: 66.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/5.322, allocations: 80.33 kB / 1.63 GB, free: 66.37 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/5.324, allocations: 0.9225 MB / 1.631 GB, free: 66.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.503e-05/5.324, allocations: 3.906 kB / 1.631 GB, free: 66.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/5.325, allocations: 36.97 kB / 1.631 GB, free: 66.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/5.325, allocations: 17.66 kB / 1.631 GB, free: 66.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001971/5.327, allocations: 0.8476 MB / 1.632 GB, free: 66.3 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.008076/5.335, allocations: 3.428 MB / 1.635 GB, free: 64.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/5.336, allocations: 0.6356 MB / 1.636 GB, free: 64.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.814e-05/5.336, allocations: 18.66 kB / 1.636 GB, free: 64.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/5.336, allocations: 44.38 kB / 1.636 GB, free: 64.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.046e-06/5.336, allocations: 0 / 1.636 GB, free: 64.71 MB / 426.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.02468/5.361, allocations: 6.182 MB / 1.642 GB, free: 62.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/5.361, allocations: 61.52 kB / 1.642 GB, free: 62.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008944/5.362, allocations: 0.4957 MB / 1.642 GB, free: 62.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002085/5.362, allocations: 44.55 kB / 1.643 GB, free: 62.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/5.362, allocations: 321.1 kB / 1.643 GB, free: 62.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/5.362, allocations: 249.8 kB / 1.643 GB, free: 62.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.822e-05/5.363, allocations: 13.94 kB / 1.643 GB, free: 62.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.379e-05/5.363, allocations: 335.4 kB / 1.643 GB, free: 61.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000952/5.364, allocations: 441.9 kB / 1.644 GB, free: 61.77 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/5.365, allocations: 0.5055 MB / 1.644 GB, free: 61.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/5.366, allocations: 0.4984 MB / 1.645 GB, free: 61.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/5.366, allocations: 0 / 1.645 GB, free: 61.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002935/5.369, allocations: 1.317 MB / 1.646 GB, free: 61.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/5.369, allocations: 3.688 kB / 1.646 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/5.369, allocations: 3.406 kB / 1.646 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009169/5.37, allocations: 331.5 kB / 1.646 GB, free: 61.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/5.371, allocations: 184.4 kB / 1.647 GB, free: 61.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008444/5.38, allocations: 10.27 MB / 1.657 GB, free: 52.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/5.381, allocations: 81.48 kB / 1.657 GB, free: 52.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/5.381, allocations: 46.45 kB / 1.657 GB, free: 52.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000656/5.382, allocations: 269.2 kB / 1.657 GB, free: 52.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/5.382, allocations: 67.31 kB / 1.657 GB, free: 52.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/5.385, allocations: 1.275 MB / 1.658 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/5.386, allocations: 9.344 kB / 1.658 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/5.386, allocations: 0 / 1.658 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002673/5.388, allocations: 1.605 MB / 1.66 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007046/5.395, allocations: 2.27 MB / 1.662 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/5.395, allocations: 0 / 1.662 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/5.398, allocations: 228.8 kB / 1.662 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003051/5.398, allocations: 67.89 kB / 1.662 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/5.398, allocations: 38.5 kB / 1.662 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/5.4, allocations: 1.441 MB / 1.664 GB, free: 49.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/5.4, allocations: 11.45 kB / 1.664 GB, free: 49.47 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003704/5.403, allocations: 1.628 MB / 1.665 GB, free: 49.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000397/5.404, allocations: 145.8 kB / 1.666 GB, free: 49.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/5.404, allocations: 32.06 kB / 1.666 GB, free: 49.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/5.405, allocations: 72.31 kB / 1.666 GB, free: 49.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/5.406, allocations: 61.62 kB / 1.666 GB, free: 49.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/5.406, allocations: 58 kB / 1.666 GB, free: 49.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006741/5.406, allocations: 406.7 kB / 1.666 GB, free: 48.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 4e-07/5.407, allocations: 0 / 1.666 GB, free: 48.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002103/5.409, allocations: 421.1 kB / 1.667 GB, free: 48.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007129/5.416, allocations: 3.499 MB / 1.67 GB, free: 47.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003752/5.42, allocations: 1.849 MB / 1.672 GB, free: 47.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/5.42, allocations: 7.125 kB / 1.672 GB, free: 47.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/5.421, allocations: 0.684 MB / 1.672 GB, free: 47.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004169/5.425, allocations: 481.4 kB / 1.673 GB, free: 47.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01394/5.439, allocations: 6.917 MB / 1.68 GB, free: 44.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/5.44, allocations: 0.9813 MB / 1.681 GB, free: 44.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008397/5.441, allocations: 277.2 kB / 1.681 GB, free: 44.22 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/5.441, allocations: 3.906 kB / 1.681 GB, free: 44.22 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.578/9.019, allocations: 33.86 MB / 1.714 GB, free: 35.27 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat