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.0009828/0.0009828, allocations: 175.4 kB / 16.72 MB, free: 5.051 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.154/1.154, allocations: 205.4 MB / 222.9 MB, free: 9.008 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.0007101/0.0007101, allocations: 85.42 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002858, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1816, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2Mix): time 0.2791/0.4608, allocations: 136.8 MB / 0.5 GB, free: 1.535 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.462, allocations: 1.386 MB / 0.5014 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.712e-05/0.4621, allocations: 0 / 0.5014 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.4624, allocations: 45.52 kB / 0.5014 GB, free: 1.523 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006079/0.463, allocations: 335 kB / 0.5017 GB, free: 1.504 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003492/0.4634, allocations: 134.8 kB / 0.5019 GB, free: 1.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.4636, allocations: 214.2 kB / 0.5021 GB, free: 1.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.287e-05/0.4636, allocations: 12.03 kB / 0.5021 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.4637, allocations: 69.42 kB / 0.5021 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.4639, allocations: 60.7 kB / 0.5022 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.4639, allocations: 6.25 kB / 0.5022 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009173/0.4648, allocations: 0.6758 MB / 0.5029 GB, free: 1.484 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.434e-05/0.4649, allocations: 27.06 kB / 0.5029 GB, free: 1.484 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.017e-05/0.4649, allocations: 73.27 kB / 0.503 GB, free: 1.453 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.4653, allocations: 279.4 kB / 0.5032 GB, free: 1.438 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.4653, allocations: 8.156 kB / 0.5032 GB, free: 1.434 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4653, allocations: 0 / 0.5032 GB, free: 1.434 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.4653, allocations: 0 / 0.5032 GB, free: 1.434 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.0004987/0.4658, allocations: 400.3 kB / 0.5036 GB, free: 17.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.4658, allocations: 9 kB / 0.5036 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.4659, allocations: 45.39 kB / 0.5037 GB, free: 17.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/0.4679, allocations: 195.4 kB / 0.5038 GB, free: 17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.4681, allocations: 208.4 kB / 0.504 GB, free: 16.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.4681, allocations: 10.78 kB / 0.5041 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.4682, allocations: 11.25 kB / 0.5041 GB, free: 16.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.4686, allocations: 199.3 kB / 0.5043 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.4686, allocations: 0 / 0.5043 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.4686, allocations: 3.062 kB / 0.5043 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.4686, allocations: 8.734 kB / 0.5043 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004976/0.4691, allocations: 247.1 kB / 0.5045 GB, free: 16.75 MB / 394.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.001502/0.4707, allocations: 0.6697 MB / 0.5052 GB, free: 16.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003601/0.471, allocations: 193.6 kB / 0.5053 GB, free: 16.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.4712, allocations: 91.72 kB / 0.5054 GB, free: 16.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.4714, allocations: 86.16 kB / 0.5055 GB, free: 16.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.4714, allocations: 37.84 kB / 0.5055 GB, free: 16.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.4714, allocations: 0 / 0.5055 GB, free: 16.21 MB / 394.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.005055/0.4765, allocations: 1.545 MB / 0.5071 GB, free: 15.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.4765, allocations: 58.19 kB / 0.5071 GB, free: 15.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.535e-05/0.4766, allocations: 114.9 kB / 0.5072 GB, free: 15.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.4766, allocations: 27.89 kB / 0.5072 GB, free: 15.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.4767, allocations: 98.45 kB / 0.5073 GB, free: 15.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.4767, allocations: 67.7 kB / 0.5074 GB, free: 15.26 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.936e-05/0.4768, allocations: 3.5 kB / 0.5074 GB, free: 15.26 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4769, allocations: 318.9 kB / 0.5077 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.4771, allocations: 96.77 kB / 0.5078 GB, free: 14.94 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.4773, allocations: 131.5 kB / 0.5079 GB, free: 14.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.4777, allocations: 216.1 kB / 0.5081 GB, free: 14.88 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4777, allocations: 3.938 kB / 0.5081 GB, free: 14.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005396/0.4782, allocations: 289.1 kB / 0.5084 GB, free: 14.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4783, allocations: 5.281 kB / 0.5084 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.4783, allocations: 1.25 kB / 0.5084 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.4784, allocations: 21.64 kB / 0.5084 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.4788, allocations: 58.2 kB / 0.5085 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003019/0.4792, allocations: 0.538 MB / 0.509 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.4794, allocations: 12.22 kB / 0.509 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.4795, allocations: 6.438 kB / 0.509 GB, free: 14.29 MB / 394.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.0001087/0.4796, allocations: 134.1 kB / 0.5092 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.165e-05/0.4796, allocations: 11.59 kB / 0.5092 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006646/0.4803, allocations: 310.5 kB / 0.5095 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4803, allocations: 1.781 kB / 0.5095 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.4803, allocations: 7.938 kB / 0.5095 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.4804, allocations: 8.688 kB / 0.5095 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009104/0.4813, allocations: 0.662 MB / 0.5101 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4813, allocations: 4 kB / 0.5101 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.4817, allocations: 59.98 kB / 0.5102 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.533e-05/0.4818, allocations: 16.38 kB / 0.5102 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.4818, allocations: 10.41 kB / 0.5102 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000721/0.4825, allocations: 1.263 MB / 0.5115 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4825, allocations: 5.859 kB / 0.5115 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007489/0.4833, allocations: 447.2 kB / 0.5119 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.4834, allocations: 95.53 kB / 0.512 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.4834, allocations: 9.5 kB / 0.512 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.4837, allocations: 12.25 kB / 0.512 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.4838, allocations: 21.92 kB / 0.512 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.321e-05/0.4838, allocations: 10.84 kB / 0.512 GB, free: 12.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.771e-05/0.4839, allocations: 91.14 kB / 0.5121 GB, free: 12.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4839, allocations: 3.938 kB / 0.5121 GB, free: 12.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005613/0.4844, allocations: 127.6 kB / 0.5122 GB, free: 12.1 MB / 394.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.001504/0.486, allocations: 1.133 MB / 0.5134 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004939/0.4865, allocations: 227.1 kB / 0.5136 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4865, allocations: 4.188 kB / 0.5136 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.4868, allocations: 237.3 kB / 0.5138 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/0.4872, allocations: 42.14 kB / 0.5138 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.4889, allocations: 1.195 MB / 0.515 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.4892, allocations: 0.7113 MB / 0.5157 GB, free: 9.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.4894, allocations: 39.83 kB / 0.5157 GB, free: 9.895 MB / 394.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4894, allocations: 0 / 0.5157 GB, free: 9.895 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.569/4.058, allocations: 4.852 MB / 0.5205 GB, free: 9.547 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) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches