Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.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.MixtureGases,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases",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.002383/0.002381, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.267/2.267, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001127, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.001e-05/2.03e-05, allocations: 0 / 314.9 MB, free: 9.082 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.348, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.251/2.599, allocations: 0.7372 GB / 1.091 GB, free: 54.5 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/2.6, allocations: 66.62 kB / 1.091 GB, free: 54.46 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6914/3.291, allocations: 105.5 MB / 1.194 GB, free: 127.7 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.084e-06/3.291, allocations: 4 kB / 1.194 GB, free: 127.7 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/3.291, allocations: 7.375 kB / 1.194 GB, free: 127.7 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.003928/3.295, allocations: 0.7616 MB / 1.195 GB, free: 127.1 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/3.295, allocations: 10.84 kB / 1.195 GB, free: 127.1 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003183/3.298, allocations: 251.4 kB / 1.195 GB, free: 127 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007682/3.299, allocations: 287.3 kB / 1.196 GB, free: 126.7 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/3.299, allocations: 11.78 kB / 1.196 GB, free: 126.7 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/3.299, allocations: 19.53 kB / 1.196 GB, free: 126.7 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001516/3.301, allocations: 0.5921 MB / 1.196 GB, free: 126.4 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/3.302, allocations: 0.5773 MB / 1.197 GB, free: 126.1 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/3.302, allocations: 0 / 1.197 GB, free: 126.1 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/3.302, allocations: 3.938 kB / 1.197 GB, free: 126.1 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.909e-05/3.303, allocations: 19.62 kB / 1.197 GB, free: 126.1 MB / 427.1 MB 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.005826/3.308, allocations: 1.746 MB / 1.198 GB, free: 124.4 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009348/3.309, allocations: 385.5 kB / 1.199 GB, free: 124 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/3.31, allocations: 176.2 kB / 1.199 GB, free: 123.8 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002332/3.312, allocations: 0.9084 MB / 1.2 GB, free: 122.8 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/3.312, allocations: 34.56 kB / 1.2 GB, free: 122.7 MB / 427.1 MB Notification: Performance of pre-optimization done (n=35): time 4.228e-06/3.312, allocations: 0 / 1.2 GB, free: 122.7 MB / 427.1 MB Notification: Performance of matching and sorting (n=48): time 0.0126/3.325, allocations: 2.212 MB / 1.202 GB, free: 120.4 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/3.325, allocations: 85.11 kB / 1.202 GB, free: 120.3 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/3.325, allocations: 163.3 kB / 1.202 GB, free: 120.1 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 8.502e-05/3.325, allocations: 25.7 kB / 1.202 GB, free: 120.1 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/3.325, allocations: 242.6 kB / 1.203 GB, free: 119.8 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/3.326, allocations: 173.5 kB / 1.203 GB, free: 119.6 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.894e-05/3.326, allocations: 0 / 1.203 GB, free: 119.6 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/3.326, allocations: 326.8 kB / 1.203 GB, free: 119.3 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005241/3.326, allocations: 201.5 kB / 1.203 GB, free: 119.1 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006428/3.327, allocations: 361.9 kB / 1.204 GB, free: 118.7 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006583/3.328, allocations: 241.2 kB / 1.204 GB, free: 118.5 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/3.328, allocations: 0 / 1.204 GB, free: 118.5 MB / 427.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001759/3.329, allocations: 0.6232 MB / 1.204 GB, free: 117.8 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/3.33, allocations: 8 kB / 1.204 GB, free: 117.8 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/3.33, allocations: 4 kB / 1.204 GB, free: 117.8 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/3.33, allocations: 54.33 kB / 1.204 GB, free: 117.8 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/3.332, allocations: 175.7 kB / 1.205 GB, free: 117.6 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007473/3.333, allocations: 1.081 MB / 1.206 GB, free: 116.5 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/3.334, allocations: 31.95 kB / 1.206 GB, free: 116.4 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/3.334, allocations: 39.98 kB / 1.206 GB, free: 116.4 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002693/3.334, allocations: 124.9 kB / 1.206 GB, free: 116.3 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001554/3.336, allocations: 0.491 MB / 1.206 GB, free: 115.8 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/3.336, allocations: 31.67 kB / 1.206 GB, free: 115.7 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002273/3.338, allocations: 0.647 MB / 1.207 GB, free: 115.1 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/3.338, allocations: 8 kB / 1.207 GB, free: 115.1 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/3.338, allocations: 4 kB / 1.207 GB, free: 115.1 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/3.338, allocations: 3.984 kB / 1.207 GB, free: 115 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00377/3.342, allocations: 1.376 MB / 1.208 GB, free: 113.6 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/3.342, allocations: 4 kB / 1.208 GB, free: 113.6 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/3.344, allocations: 139.8 kB / 1.209 GB, free: 113.5 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002164/3.344, allocations: 45.91 kB / 1.209 GB, free: 113.4 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/3.345, allocations: 19.97 kB / 1.209 GB, free: 113.4 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/3.346, allocations: 2.419 MB / 1.211 GB, free: 110.7 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/3.346, allocations: 12.03 kB / 1.211 GB, free: 110.7 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/3.349, allocations: 0.9796 MB / 1.212 GB, free: 109.7 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/3.349, allocations: 108.8 kB / 1.212 GB, free: 109.5 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/3.349, allocations: 4 kB / 1.212 GB, free: 109.5 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/3.35, allocations: 27.95 kB / 1.212 GB, free: 109.5 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/3.35, allocations: 43.98 kB / 1.212 GB, free: 109.5 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/3.35, allocations: 35.97 kB / 1.212 GB, free: 109.4 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0001459/3.351, allocations: 116.4 kB / 1.212 GB, free: 109.3 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.71e-07/3.351, allocations: 0 / 1.212 GB, free: 109.3 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.002555/3.353, allocations: 407.6 kB / 1.213 GB, free: 108.9 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007674/3.361, allocations: 3.226 MB / 1.216 GB, free: 105.7 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001723/3.363, allocations: 0.5154 MB / 1.216 GB, free: 105.2 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/3.363, allocations: 0 / 1.216 GB, free: 105.2 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000895/3.364, allocations: 483.1 kB / 1.217 GB, free: 104.7 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/3.365, allocations: 85.7 kB / 1.217 GB, free: 104.6 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/3.368, allocations: 0.9138 MB / 1.218 GB, free: 103.6 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/3.368, allocations: 0.7932 MB / 1.218 GB, free: 102.8 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007925/3.369, allocations: 143.3 kB / 1.219 GB, free: 102.7 MB / 427.1 MB Notification: Performance of SimCode: time 1.654e-06/3.369, allocations: 0 / 1.219 GB, free: 102.7 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.37/6.74, allocations: 19.02 MB / 1.237 GB, free: 83.64 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_MixtureGases.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat does not exist to compare? outputFormat=mat