Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002551/0.002551, allocations: 198.6 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.606/2.606, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001306/0.001306, allocations: 90.22 kB / 297.4 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004442, allocations: 8 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6192/0.6197, allocations: 51.28 MB / 408.6 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.762/3.382, allocations: 0.7077 GB / 1.107 GB, free: 95.35 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/3.382, allocations: 64.5 kB / 1.107 GB, free: 95.29 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8272/4.209, allocations: 109.5 MB / 1.214 GB, free: 137.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.446e-06/4.209, allocations: 0 / 1.214 GB, free: 137.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.045e-05/4.209, allocations: 2.938 kB / 1.214 GB, free: 137.2 MB / 458.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.003586/4.213, allocations: 0.7735 MB / 1.214 GB, free: 136.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/4.213, allocations: 11.19 kB / 1.214 GB, free: 136.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002497/4.216, allocations: 243.4 kB / 1.215 GB, free: 136.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/4.216, allocations: 290.2 kB / 1.215 GB, free: 136.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/4.216, allocations: 23.69 kB / 1.215 GB, free: 136.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/4.216, allocations: 28.69 kB / 1.215 GB, free: 136.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/4.218, allocations: 0.6663 MB / 1.216 GB, free: 136.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/4.218, allocations: 0 / 1.216 GB, free: 136.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/4.219, allocations: 17.16 kB / 1.216 GB, free: 136.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.885e-05/4.219, allocations: 17.7 kB / 1.216 GB, free: 136.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/4.221, allocations: 0.7472 MB / 1.216 GB, free: 136.5 MB / 458.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.009566/4.23, allocations: 1.795 MB / 1.218 GB, free: 135.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/4.232, allocations: 478.6 kB / 1.219 GB, free: 135.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008081/4.233, allocations: 233.8 kB / 1.219 GB, free: 135.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002572/4.236, allocations: 1.339 MB / 1.22 GB, free: 134.5 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/4.236, allocations: 42.56 kB / 1.22 GB, free: 134.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 4.869e-06/4.236, allocations: 0 / 1.22 GB, free: 134.5 MB / 458.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.02256/4.258, allocations: 3.656 MB / 1.224 GB, free: 133.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/4.258, allocations: 83.02 kB / 1.224 GB, free: 133.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/4.259, allocations: 178.5 kB / 1.224 GB, free: 133.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.281e-05/4.259, allocations: 35.14 kB / 1.224 GB, free: 133.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/4.259, allocations: 177 kB / 1.224 GB, free: 133 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/4.259, allocations: 178.5 kB / 1.224 GB, free: 132.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/4.259, allocations: 12.22 kB / 1.224 GB, free: 132.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/4.259, allocations: 336.1 kB / 1.225 GB, free: 132.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009868/4.26, allocations: 261.4 kB / 1.225 GB, free: 132.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/4.261, allocations: 422.8 kB / 1.225 GB, free: 132.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/4.264, allocations: 0.6978 MB / 1.226 GB, free: 132.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/4.264, allocations: 2.094 kB / 1.226 GB, free: 132.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002707/4.266, allocations: 0.7758 MB / 1.227 GB, free: 132.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/4.267, allocations: 12.03 kB / 1.227 GB, free: 132.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/4.267, allocations: 3.375 kB / 1.227 GB, free: 132.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/4.267, allocations: 59.84 kB / 1.227 GB, free: 132.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/4.268, allocations: 180.9 kB / 1.227 GB, free: 132.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006924/4.269, allocations: 1.083 MB / 1.228 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000938/4.27, allocations: 44.39 kB / 1.228 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/4.27, allocations: 36.84 kB / 1.228 GB, free: 131.1 MB / 458.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 () * Number of clocked 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.0003889/4.27, allocations: 172.6 kB / 1.228 GB, free: 131 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/4.271, allocations: 33.59 kB / 1.228 GB, free: 131 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002981/4.274, allocations: 0.7846 MB / 1.229 GB, free: 130.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/4.274, allocations: 6.406 kB / 1.229 GB, free: 130.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/4.274, allocations: 0 / 1.229 GB, free: 130.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/4.274, allocations: 7.141 kB / 1.229 GB, free: 130.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009226/4.283, allocations: 1.567 MB / 1.231 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.93e-05/4.283, allocations: 6.984 kB / 1.231 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/4.284, allocations: 147 kB / 1.231 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002261/4.285, allocations: 44.92 kB / 1.231 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.865e-05/4.285, allocations: 24.11 kB / 1.231 GB, free: 130.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/4.287, allocations: 2.536 MB / 1.233 GB, free: 127.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/4.287, allocations: 0 / 1.233 GB, free: 127.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003513/4.29, allocations: 1.068 MB / 1.234 GB, free: 127.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/4.29, allocations: 102.5 kB / 1.235 GB, free: 127.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/4.291, allocations: 11.12 kB / 1.235 GB, free: 127.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009225/4.292, allocations: 47.75 kB / 1.235 GB, free: 127.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/4.292, allocations: 45.33 kB / 1.235 GB, free: 127.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/4.292, allocations: 35.95 kB / 1.235 GB, free: 127.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000144/4.292, allocations: 125.8 kB / 1.235 GB, free: 127.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/4.292, allocations: 0 / 1.235 GB, free: 127.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003236/4.295, allocations: 444.8 kB / 1.235 GB, free: 127.3 MB / 458.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 () * Number of clocked 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.005351/4.301, allocations: 1.159 MB / 1.236 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002906/4.304, allocations: 0.6538 MB / 1.237 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/4.304, allocations: 3.156 kB / 1.237 GB, free: 127.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/4.305, allocations: 0.532 MB / 1.238 GB, free: 126.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/4.31, allocations: 100.4 kB / 1.238 GB, free: 126.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/4.313, allocations: 1.213 MB / 1.239 GB, free: 126.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/4.313, allocations: 0.7802 MB / 1.24 GB, free: 125.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006512/4.314, allocations: 77.59 kB / 1.24 GB, free: 125.5 MB / 458.7 MB Notification: Performance of SimCode: time 2.615e-06/4.314, allocations: 0 / 1.24 GB, free: 125.5 MB / 458.7 MB Notification: Performance of Templates: time 0.04422/4.358, allocations: 17.34 MB / 1.257 GB, free: 119.1 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches