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.00235/0.00235, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.073/2.073, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001121/0.001121, allocations: 82.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.02e-05/4.041e-05, allocations: 8 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.348/2.469, allocations: 0.7379 GB / 1.098 GB, free: 82.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/2.469, allocations: 72.83 kB / 1.098 GB, free: 82.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7141/3.183, allocations: 107.2 MB / 1.203 GB, free: 120.4 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/3.183, allocations: 3.906 kB / 1.203 GB, free: 120.4 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/3.183, allocations: 5.75 kB / 1.203 GB, free: 120.4 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.003682/3.187, allocations: 0.7652 MB / 1.204 GB, free: 120 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/3.187, allocations: 11.25 kB / 1.204 GB, free: 120 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/3.187, allocations: 64.61 kB / 1.204 GB, free: 119.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003094/3.19, allocations: 243.7 kB / 1.204 GB, free: 119.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/3.191, allocations: 297 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/3.191, allocations: 19.44 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/3.191, allocations: 30.91 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/3.192, allocations: 0.6135 MB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/3.193, allocations: 6.141 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/3.193, allocations: 15.28 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.373e-05/3.193, allocations: 22.81 kB / 1.205 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/3.194, allocations: 0.6526 MB / 1.206 GB, free: 119.7 MB / 426.7 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.005953/3.2, allocations: 1.81 MB / 1.208 GB, free: 118.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/3.201, allocations: 392.7 kB / 1.208 GB, free: 118.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004803/3.202, allocations: 189.5 kB / 1.208 GB, free: 118.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002329/3.204, allocations: 0.9117 MB / 1.209 GB, free: 118 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/3.204, allocations: 37.97 kB / 1.209 GB, free: 118 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.647e-06/3.204, allocations: 0 / 1.209 GB, free: 118 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: medium1.T Please use -d=bltdump for more information. 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: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01753/3.222, allocations: 2.787 MB / 1.212 GB, free: 117.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/3.222, allocations: 89.92 kB / 1.212 GB, free: 117 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/3.222, allocations: 160.4 kB / 1.212 GB, free: 116.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/3.222, allocations: 32.7 kB / 1.212 GB, free: 116.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/3.222, allocations: 248.1 kB / 1.212 GB, free: 116.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/3.223, allocations: 178.2 kB / 1.212 GB, free: 116.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-05/3.223, allocations: 7.625 kB / 1.213 GB, free: 116.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.095e-05/3.223, allocations: 336.7 kB / 1.213 GB, free: 116.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/3.223, allocations: 209.2 kB / 1.213 GB, free: 116.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007148/3.224, allocations: 368.4 kB / 1.213 GB, free: 116.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007647/3.225, allocations: 255.6 kB / 1.214 GB, free: 116.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/3.225, allocations: 11.42 kB / 1.214 GB, free: 116.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002027/3.227, allocations: 0.6651 MB / 1.214 GB, free: 116 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/3.227, allocations: 10.8 kB / 1.214 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/3.227, allocations: 7.344 kB / 1.214 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/3.228, allocations: 59.48 kB / 1.214 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/3.23, allocations: 182.4 kB / 1.215 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007494/3.23, allocations: 1.078 MB / 1.216 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/3.232, allocations: 44.84 kB / 1.216 GB, free: 114.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/3.232, allocations: 48.06 kB / 1.216 GB, free: 114.9 MB / 426.7 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.0002816/3.232, allocations: 133.3 kB / 1.216 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/3.232, allocations: 31.31 kB / 1.216 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002551/3.235, allocations: 0.6852 MB / 1.216 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/3.235, allocations: 6.594 kB / 1.216 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/3.235, allocations: 0 / 1.216 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/3.235, allocations: 3.891 kB / 1.217 GB, free: 114.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004164/3.239, allocations: 1.464 MB / 1.218 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/3.239, allocations: 3.953 kB / 1.218 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001959/3.241, allocations: 147.6 kB / 1.218 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002427/3.242, allocations: 46.44 kB / 1.218 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/3.242, allocations: 25.05 kB / 1.218 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/3.244, allocations: 2.523 MB / 1.221 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/3.244, allocations: 3.938 kB / 1.221 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/3.246, allocations: 1.018 MB / 1.222 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/3.247, allocations: 100.5 kB / 1.222 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/3.247, allocations: 17.67 kB / 1.222 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/3.248, allocations: 43.95 kB / 1.222 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/3.248, allocations: 44.77 kB / 1.222 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/3.248, allocations: 36.47 kB / 1.222 GB, free: 110.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001558/3.249, allocations: 121.6 kB / 1.222 GB, free: 110.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/3.249, allocations: 0 / 1.222 GB, free: 110.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002389/3.251, allocations: 445.7 kB / 1.222 GB, free: 110.8 MB / 426.7 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.007021/3.258, allocations: 3.14 MB / 1.225 GB, free: 108.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001873/3.26, allocations: 0.5473 MB / 1.226 GB, free: 108.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/3.26, allocations: 0 / 1.226 GB, free: 108.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/3.261, allocations: 0.4883 MB / 1.226 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/3.262, allocations: 89.78 kB / 1.227 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/3.266, allocations: 0.9594 MB / 1.227 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/3.266, allocations: 0.7872 MB / 1.228 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008819/3.267, allocations: 143.9 kB / 1.228 GB, free: 106.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.522e-06/3.267, allocations: 3.844 kB / 1.228 GB, free: 106.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.371/6.638, allocations: 19.03 MB / 1.247 GB, free: 100.4 MB / 426.7 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