Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.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.TestOnly.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.IdealGasN2Mix,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix",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.002405/0.002412, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.157/2.157, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001736/0.001736, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004132/0.0004133, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09644, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2Mix): time 0.4655/0.562, allocations: 125.7 MB / 0.4886 GB, free: 15.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.5644, allocations: 1.241 MB / 0.4898 GB, free: 14.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.32e-05/0.5645, allocations: 4 kB / 0.4898 GB, free: 14.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.5648, allocations: 35.86 kB / 0.4898 GB, free: 14.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.5658, allocations: 283.1 kB / 0.4901 GB, free: 14.17 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.5664, allocations: 136.1 kB / 0.4902 GB, free: 14.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.5667, allocations: 107.8 kB / 0.4903 GB, free: 13.93 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.334e-05/0.5668, allocations: 4 kB / 0.4904 GB, free: 13.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.567, allocations: 83.75 kB / 0.4904 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.5671, allocations: 43.83 kB / 0.4905 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.5672, allocations: 7.938 kB / 0.4905 GB, free: 13.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.5686, allocations: 435.4 kB / 0.4909 GB, free: 13.37 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.718e-05/0.5687, allocations: 31.84 kB / 0.4909 GB, free: 13.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.99e-05/0.5688, allocations: 41.64 kB / 0.491 GB, free: 13.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006391/0.5694, allocations: 257 kB / 0.4912 GB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.5694, allocations: 0 / 0.4912 GB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5694, allocations: 4 kB / 0.4912 GB, free: 13.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.5694, allocations: 0 / 0.4912 GB, free: 13.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006199/0.5701, allocations: 404.1 kB / 0.4916 GB, free: 12.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.5701, allocations: 8.031 kB / 0.4916 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.281e-05/0.5702, allocations: 46.55 kB / 0.4917 GB, free: 12.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003671/0.5739, allocations: 192.1 kB / 0.4918 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.5742, allocations: 218.8 kB / 0.492 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.5743, allocations: 4.188 kB / 0.492 GB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.5743, allocations: 12 kB / 0.4921 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007528/0.5751, allocations: 195 kB / 0.4922 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.5751, allocations: 0 / 0.4922 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.5752, allocations: 8 kB / 0.4923 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.5752, allocations: 0 / 0.4923 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.5762, allocations: 236.4 kB / 0.4925 GB, free: 11.64 MB / 378.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.002771/0.579, allocations: 0.6878 MB / 0.4932 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007363/0.5798, allocations: 182.4 kB / 0.4933 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002164/0.58, allocations: 93.09 kB / 0.4934 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.5801, allocations: 42.55 kB / 0.4935 GB, free: 10.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.054e-06/0.5801, allocations: 0 / 0.4935 GB, free: 10.55 MB / 378.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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.009807/0.5899, allocations: 1.531 MB / 0.4949 GB, free: 8.906 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.59, allocations: 59.34 kB / 0.495 GB, free: 8.836 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.5901, allocations: 113.8 kB / 0.4951 GB, free: 8.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.579e-05/0.5902, allocations: 29.7 kB / 0.4951 GB, free: 8.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.5903, allocations: 158.8 kB / 0.4953 GB, free: 8.523 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.574e-05/0.5904, allocations: 75 kB / 0.4954 GB, free: 8.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.5904, allocations: 3.938 kB / 0.4954 GB, free: 8.445 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.5906, allocations: 322.8 kB / 0.4957 GB, free: 8.121 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.591, allocations: 91.81 kB / 0.4958 GB, free: 8.031 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004106/0.5914, allocations: 123.4 kB / 0.4959 GB, free: 7.898 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.5918, allocations: 99.98 kB / 0.496 GB, free: 7.801 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5918, allocations: 0 / 0.496 GB, free: 7.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001086/0.5929, allocations: 286.3 kB / 0.4963 GB, free: 7.512 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.593, allocations: 7.938 kB / 0.4963 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.593, allocations: 3.938 kB / 0.4963 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.5932, allocations: 24.94 kB / 0.4963 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008289/0.594, allocations: 55.95 kB / 0.4963 GB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004663/0.5945, allocations: 0.5328 MB / 0.4969 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.595, allocations: 16.02 kB / 0.4969 GB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.5951, allocations: 4 kB / 0.4969 GB, free: 6.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.5953, allocations: 138 kB / 0.497 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.531e-05/0.5954, allocations: 11.89 kB / 0.497 GB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.5967, allocations: 319 kB / 0.4973 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.5967, allocations: 0 / 0.4973 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5968, allocations: 0 / 0.4973 GB, free: 6.367 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.5968, allocations: 4 kB / 0.4973 GB, free: 6.363 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.5986, allocations: 0.6656 MB / 0.498 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.5986, allocations: 0 / 0.498 GB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008458/0.5995, allocations: 55.89 kB / 0.498 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/0.5996, allocations: 24.8 kB / 0.4981 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.592e-05/0.5997, allocations: 7.984 kB / 0.4981 GB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.601, allocations: 1.273 MB / 0.4993 GB, free: 4.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.601, allocations: 3.938 kB / 0.4993 GB, free: 4.129 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.6025, allocations: 484 kB / 0.4998 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.167e-05/0.6026, allocations: 97.05 kB / 0.4999 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.537e-05/0.6027, allocations: 8.859 kB / 0.4999 GB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005975/0.6033, allocations: 11.98 kB / 0.4999 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.6033, allocations: 15.94 kB / 0.4999 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.6034, allocations: 15.98 kB / 0.4999 GB, free: 3.445 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.969e-05/0.6035, allocations: 87.27 kB / 0.5 GB, free: 3.359 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6035, allocations: 0 / 0.5 GB, free: 3.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007716/0.6043, allocations: 127.9 kB / 0.5001 GB, free: 3.234 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (19): * Single equations (assignments): 18 * 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.00274/0.607, allocations: 1.365 MB / 0.5015 GB, free: 1.816 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.6081, allocations: 223.8 kB / 0.5017 GB, free: 1.598 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.6081, allocations: 0 / 0.5017 GB, free: 1.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.6088, allocations: 228.8 kB / 0.5019 GB, free: 1.363 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.6094, allocations: 43.95 kB / 0.5019 GB, free: 1.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.6129, allocations: 1.644 MB / 0.5035 GB, free: 15.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.6133, allocations: 0.7127 MB / 0.5042 GB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.6136, allocations: 44.73 kB / 0.5043 GB, free: 14.82 MB / 394.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6136, allocations: 0 / 0.5043 GB, free: 14.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.087/3.7, allocations: 5.831 MB / 0.51 GB, free: 8.98 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2Mix.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat does not exist to compare? outputFormat=mat