Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001111/0.001111, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.698/1.698, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009344/0.0009349, allocations: 102.8 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002793, allocations: 4 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3143, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.576/1.89, allocations: 0.7117 GB / 1.079 GB, free: 57.39 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/1.89, allocations: 102.8 kB / 1.079 GB, free: 57.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.905/3.795, allocations: 0.5506 GB / 1.629 GB, free: 80.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.435e-06/3.796, allocations: 0 / 1.629 GB, free: 80.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.997e-05/3.796, allocations: 17.73 kB / 1.629 GB, free: 80.71 MB / 442.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.002513/3.798, allocations: 1.01 MB / 1.63 GB, free: 80.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/3.798, allocations: 11.19 kB / 1.63 GB, free: 80.31 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001685/3.798, allocations: 128 kB / 1.631 GB, free: 80.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/3.799, allocations: 153.3 kB / 1.631 GB, free: 80.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007142/3.8, allocations: 479.3 kB / 1.631 GB, free: 80.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/3.8, allocations: 54.59 kB / 1.631 GB, free: 80.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-05/3.8, allocations: 74.81 kB / 1.631 GB, free: 80.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/3.801, allocations: 0.9191 MB / 1.632 GB, free: 79.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/3.801, allocations: 6.25 kB / 1.632 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.13e-05/3.801, allocations: 36.41 kB / 1.632 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/3.801, allocations: 15.34 kB / 1.632 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/3.802, allocations: 0.8483 MB / 1.633 GB, free: 79.96 MB / 442.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.004056/3.806, allocations: 3.424 MB / 1.636 GB, free: 78.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006721/3.807, allocations: 0.6412 MB / 1.637 GB, free: 78.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.607e-05/3.807, allocations: 17.3 kB / 1.637 GB, free: 78.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/3.807, allocations: 48.72 kB / 1.637 GB, free: 78.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 2.214e-06/3.807, allocations: 2.125 kB / 1.637 GB, free: 78.38 MB / 442.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.01278/3.82, allocations: 6.181 MB / 1.643 GB, free: 76.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/3.82, allocations: 62.55 kB / 1.643 GB, free: 76.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005003/3.82, allocations: 0.4954 MB / 1.644 GB, free: 76.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.99e-05/3.821, allocations: 41.05 kB / 1.644 GB, free: 76.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/3.821, allocations: 279.6 kB / 1.644 GB, free: 75.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/3.821, allocations: 255.8 kB / 1.644 GB, free: 75.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/3.821, allocations: 17.38 kB / 1.644 GB, free: 75.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.828e-05/3.821, allocations: 364.5 kB / 1.645 GB, free: 75.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/3.822, allocations: 443.3 kB / 1.645 GB, free: 75.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/3.822, allocations: 0.5078 MB / 1.646 GB, free: 75.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006098/3.823, allocations: 0.4927 MB / 1.646 GB, free: 75.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/3.823, allocations: 1.625 kB / 1.646 GB, free: 75.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001612/3.824, allocations: 1.337 MB / 1.647 GB, free: 75.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/3.825, allocations: 7.922 kB / 1.647 GB, free: 75.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/3.825, allocations: 3.938 kB / 1.647 GB, free: 75.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/3.825, allocations: 330.5 kB / 1.648 GB, free: 75.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008521/3.826, allocations: 185 kB / 1.648 GB, free: 75.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005615/3.832, allocations: 10.28 MB / 1.658 GB, free: 65.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006287/3.832, allocations: 83.39 kB / 1.658 GB, free: 65.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-05/3.832, allocations: 45.27 kB / 1.658 GB, free: 65.98 MB / 442.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.0004319/3.833, allocations: 269.8 kB / 1.658 GB, free: 65.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/3.833, allocations: 61.28 kB / 1.658 GB, free: 65.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/3.835, allocations: 1.286 MB / 1.66 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/3.835, allocations: 7.406 kB / 1.66 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/3.835, allocations: 0 / 1.66 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001331/3.836, allocations: 1.599 MB / 1.661 GB, free: 64.87 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/3.839, allocations: 2.274 MB / 1.663 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/3.839, allocations: 1.125 kB / 1.663 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/3.84, allocations: 219.2 kB / 1.664 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/3.841, allocations: 68.94 kB / 1.664 GB, free: 64.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.747e-05/3.841, allocations: 39.08 kB / 1.664 GB, free: 64.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009775/3.842, allocations: 1.448 MB / 1.665 GB, free: 63.24 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/3.842, allocations: 7.297 kB / 1.665 GB, free: 63.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/3.844, allocations: 1.628 MB / 1.667 GB, free: 62.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/3.844, allocations: 147.5 kB / 1.667 GB, free: 62.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/3.844, allocations: 26.55 kB / 1.667 GB, free: 62.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007714/3.845, allocations: 79.44 kB / 1.667 GB, free: 62.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/3.845, allocations: 55.42 kB / 1.667 GB, free: 62.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/3.845, allocations: 63.48 kB / 1.667 GB, free: 62.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005385/3.846, allocations: 404.2 kB / 1.667 GB, free: 62.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/3.846, allocations: 0 / 1.667 GB, free: 62.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001821/3.848, allocations: 414.3 kB / 1.668 GB, free: 62.76 MB / 442.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.005524/3.853, allocations: 3.496 MB / 1.671 GB, free: 61.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002523/3.856, allocations: 1.86 MB / 1.673 GB, free: 60.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/3.856, allocations: 3.219 kB / 1.673 GB, free: 60.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008864/3.857, allocations: 0.6839 MB / 1.674 GB, free: 60.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/3.859, allocations: 485.8 kB / 1.674 GB, free: 60.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009425/3.868, allocations: 6.837 MB / 1.681 GB, free: 58.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/3.869, allocations: 0.9861 MB / 1.682 GB, free: 58.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001064/3.87, allocations: 275.2 kB / 1.682 GB, free: 58.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/3.871, allocations: 283.2 kB / 1.682 GB, free: 58.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.143e-06/3.871, allocations: 0 / 1.682 GB, free: 58.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07418/3.945, allocations: 44.32 MB / 1.726 GB, free: 56.27 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/3.945, allocations: 242.8 kB / 1.726 GB, free: 56.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.364/7.309, allocations: 0 / 1.726 GB, free: 56.02 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_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_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat