Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) 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.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_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.001964/0.001963, allocations: 183.4 kB / 13.19 MB, free: 2.129 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.899/1.899, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001094/0.001095, allocations: 86.59 kB / 267.1 MB, free: 9.277 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.5052/0.5052, allocations: 43.46 MB / 358.6 MB, free: 51.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.405e-05/4.407e-05, allocations: 4 kB / 425.4 MB, free: 8.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1543, allocations: 58.84 MB / 484.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.313/2.467, allocations: 0.8261 GB / 1.299 GB, free: 8.996 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003787/2.468, allocations: 95.94 kB / 1.299 GB, free: 8.902 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.99/5.458, allocations: 0.7125 GB / 2.012 GB, free: 74.23 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.054e-06/5.458, allocations: 0 / 2.012 GB, free: 74.23 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001326/5.458, allocations: 28.03 kB / 2.012 GB, free: 74.22 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.006957/5.465, allocations: 1.564 MB / 2.013 GB, free: 73.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/5.465, allocations: 16.28 kB / 2.013 GB, free: 73.45 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007132/5.466, allocations: 165.4 kB / 2.013 GB, free: 73.4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002106/5.468, allocations: 310.8 kB / 2.014 GB, free: 73.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002415/5.47, allocations: 0.8062 MB / 2.014 GB, free: 73.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/5.471, allocations: 144.2 kB / 2.014 GB, free: 72.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004404/5.471, allocations: 107.5 kB / 2.015 GB, free: 72.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003504/5.474, allocations: 1.76 MB / 2.016 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.904e-05/5.475, allocations: 3.906 kB / 2.016 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003382/5.475, allocations: 49.78 kB / 2.016 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/5.475, allocations: 87.25 kB / 2.016 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002612/5.478, allocations: 1.596 MB / 2.018 GB, free: 72.7 MB / 0.5105 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.01107/5.489, allocations: 6.865 MB / 2.025 GB, free: 68.77 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/5.49, allocations: 0.7915 MB / 2.025 GB, free: 68.45 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006302/5.491, allocations: 427.4 kB / 2.026 GB, free: 68.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003588/5.491, allocations: 247.3 kB / 2.026 GB, free: 68.08 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.964e-05/5.491, allocations: 46.17 kB / 2.026 GB, free: 68.04 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 3.427e-06/5.491, allocations: 7.906 kB / 2.026 GB, free: 68.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.01084/5.502, allocations: 3.761 MB / 2.03 GB, free: 66.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/5.502, allocations: 111.2 kB / 2.03 GB, free: 66.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/5.504, allocations: 0.9722 MB / 2.031 GB, free: 65.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002247/5.504, allocations: 45.05 kB / 2.031 GB, free: 65.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005006/5.505, allocations: 0.5207 MB / 2.031 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000264/5.505, allocations: 264.6 kB / 2.032 GB, free: 65.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/5.505, allocations: 22 kB / 2.032 GB, free: 65.23 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001216/5.505, allocations: 351.1 kB / 2.032 GB, free: 64.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008764/5.506, allocations: 0.5605 MB / 2.033 GB, free: 64.71 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001019/5.507, allocations: 0.8487 MB / 2.033 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/5.508, allocations: 0.6771 MB / 2.034 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/5.508, allocations: 3.281 kB / 2.034 GB, free: 63.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002954/5.511, allocations: 1.945 MB / 2.036 GB, free: 63.19 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/5.511, allocations: 14.11 kB / 2.036 GB, free: 63.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/5.511, allocations: 8.594 kB / 2.036 GB, free: 63.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004557/5.516, allocations: 1.364 MB / 2.037 GB, free: 62.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000636/5.517, allocations: 136.4 kB / 2.037 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/5.519, allocations: 1.903 MB / 2.039 GB, free: 61.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/5.521, allocations: 112.5 kB / 2.039 GB, free: 61.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/5.521, allocations: 72.53 kB / 2.04 GB, free: 61.94 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005071/5.522, allocations: 166.7 kB / 2.04 GB, free: 61.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/5.522, allocations: 108.6 kB / 2.04 GB, free: 61.74 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002807/5.525, allocations: 1.368 MB / 2.041 GB, free: 61.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/5.525, allocations: 7.594 kB / 2.041 GB, free: 61.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/5.525, allocations: 0 / 2.041 GB, free: 61.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/5.525, allocations: 7.703 kB / 2.041 GB, free: 61.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005012/5.53, allocations: 2.67 MB / 2.044 GB, free: 60.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/5.53, allocations: 3.953 kB / 2.044 GB, free: 60.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/5.532, allocations: 326.3 kB / 2.044 GB, free: 60.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/5.532, allocations: 66.22 kB / 2.044 GB, free: 60.02 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/5.532, allocations: 43.73 kB / 2.044 GB, free: 60.01 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/5.535, allocations: 2.834 MB / 2.047 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/5.535, allocations: 0 / 2.047 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003477/5.538, allocations: 1.866 MB / 2.049 GB, free: 56.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/5.54, allocations: 347.3 kB / 2.049 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004565/5.54, allocations: 30.69 kB / 2.049 GB, free: 56.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/5.542, allocations: 89.05 kB / 2.049 GB, free: 56.19 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/5.542, allocations: 50.78 kB / 2.049 GB, free: 56.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002361/5.542, allocations: 76.17 kB / 2.049 GB, free: 56.17 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001656/5.544, allocations: 0.77 MB / 2.05 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/5.544, allocations: 3.969 kB / 2.05 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003214/5.547, allocations: 0.623 MB / 2.051 GB, free: 55.72 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * 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): 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.008764/5.556, allocations: 3.904 MB / 2.054 GB, free: 52.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003161/5.559, allocations: 1.436 MB / 2.056 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/5.559, allocations: 2.031 kB / 2.056 GB, free: 51.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001556/5.561, allocations: 0.8328 MB / 2.057 GB, free: 50.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004358/5.565, allocations: 0.7241 MB / 2.057 GB, free: 50.25 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008664/5.574, allocations: 2.791 MB / 2.06 GB, free: 48.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/5.575, allocations: 1.194 MB / 2.061 GB, free: 47 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002054/5.577, allocations: 409.6 kB / 2.062 GB, free: 46.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000881/5.578, allocations: 446.3 kB / 2.062 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of SimCode: time 1.222e-06/5.578, allocations: 0 / 2.062 GB, free: 46.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4729/6.051, allocations: 64.9 MB / 2.126 GB, free: 89.85 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/6.051, allocations: 248.9 kB / 2.126 GB, free: 89.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.593/10.64, allocations: 0 / 2.126 GB, free: 89.52 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat