Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001661/0.001661, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 63.88 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2321, allocations: 50.54 MB / 408.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3993/0.6314, allocations: 155.4 MB / 0.5509 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003258/0.6347, allocations: 4.038 MB / 0.5549 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.6348, allocations: 3.062 kB / 0.5549 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.6352, allocations: 110 kB / 0.555 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002325/0.6376, allocations: 1.174 MB / 0.5561 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008621/0.6385, allocations: 392.2 kB / 0.5565 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005058/0.639, allocations: 455.3 kB / 0.5569 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.237e-05/0.6391, allocations: 20.31 kB / 0.5569 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003944/0.6395, allocations: 244.6 kB / 0.5572 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.6397, allocations: 143.5 kB / 0.5573 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.6397, allocations: 14.94 kB / 0.5573 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.6428, allocations: 2.064 MB / 0.5593 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.6429, allocations: 141.2 kB / 0.5595 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.6431, allocations: 166.6 kB / 0.5596 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001928/0.6451, allocations: 1.549 MB / 0.5612 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.6451, allocations: 3.938 kB / 0.5612 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6451, allocations: 0 / 0.5612 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.6451, allocations: 0 / 0.5612 GB, free: 0.7188 MB / 462.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.002127/0.6472, allocations: 0.7867 MB / 0.5619 GB, free: 16.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.6473, allocations: 8.656 kB / 0.5619 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.859e-05/0.6474, allocations: 66.73 kB / 0.562 GB, free: 16.19 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006933/0.6481, allocations: 108.1 kB / 0.5621 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.6485, allocations: 282.4 kB / 0.5624 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.6485, allocations: 22.16 kB / 0.5624 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.6486, allocations: 26.62 kB / 0.5624 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009444/0.6495, allocations: 0.5936 MB / 0.563 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.6496, allocations: 2.469 kB / 0.563 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.6496, allocations: 13.09 kB / 0.563 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.6497, allocations: 23.5 kB / 0.563 GB, free: 15.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.6507, allocations: 0.6418 MB / 0.5637 GB, free: 15.89 MB / 478.1 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.002579/0.6533, allocations: 1.267 MB / 0.5649 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007992/0.6541, allocations: 366.5 kB / 0.5652 GB, free: 15.42 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.6545, allocations: 172.7 kB / 0.5654 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/0.6569, allocations: 1.369 MB / 0.5668 GB, free: 14.26 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.6569, allocations: 43.84 kB / 0.5668 GB, free: 14.21 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.686e-06/0.6569, allocations: 2.125 kB / 0.5668 GB, free: 14.21 MB / 478.1 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.01419/0.6711, allocations: 3.492 MB / 0.5702 GB, free: 13.05 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.6712, allocations: 84.27 kB / 0.5703 GB, free: 12.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.6714, allocations: 184.7 kB / 0.5705 GB, free: 12.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.345e-05/0.6715, allocations: 31.33 kB / 0.5705 GB, free: 12.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.6716, allocations: 196.9 kB / 0.5707 GB, free: 12.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.6718, allocations: 181.6 kB / 0.5709 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/0.672, allocations: 114.2 kB / 0.571 GB, free: 12.52 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.6722, allocations: 339.3 kB / 0.5713 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006416/0.6728, allocations: 268 kB / 0.5715 GB, free: 12.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007649/0.6736, allocations: 422.7 kB / 0.5719 GB, free: 12.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.6751, allocations: 0.6962 MB / 0.5726 GB, free: 11.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.6751, allocations: 3.875 kB / 0.5726 GB, free: 11.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001806/0.6769, allocations: 0.7861 MB / 0.5734 GB, free: 11.75 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.677, allocations: 9.094 kB / 0.5734 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.677, allocations: 5.906 kB / 0.5734 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002273/0.6772, allocations: 57.81 kB / 0.5735 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.6783, allocations: 182 kB / 0.5736 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000787/0.6791, allocations: 1.071 MB / 0.5747 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007826/0.6799, allocations: 50.02 kB / 0.5747 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.249e-05/0.68, allocations: 39.44 kB / 0.5748 GB, free: 10.68 MB / 478.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 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003063/0.6803, allocations: 170.6 kB / 0.5749 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.6805, allocations: 30.25 kB / 0.575 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.6825, allocations: 0.7801 MB / 0.5757 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.6825, allocations: 10.34 kB / 0.5757 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.6825, allocations: 0 / 0.5757 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.6826, allocations: 5.047 kB / 0.5757 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.6857, allocations: 1.558 MB / 0.5773 GB, free: 9.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.6857, allocations: 4 kB / 0.5773 GB, free: 9.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.6868, allocations: 152.2 kB / 0.5774 GB, free: 9.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001501/0.687, allocations: 41.84 kB / 0.5774 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-05/0.6871, allocations: 25.72 kB / 0.5775 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002136/0.6892, allocations: 2.728 MB / 0.5801 GB, free: 7.121 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.6893, allocations: 6.125 kB / 0.5801 GB, free: 7.121 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.6917, allocations: 1.075 MB / 0.5812 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.6919, allocations: 103.5 kB / 0.5813 GB, free: 6.691 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/0.692, allocations: 19.62 kB / 0.5813 GB, free: 6.684 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008105/0.6928, allocations: 42.22 kB / 0.5813 GB, free: 6.684 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.145e-05/0.6929, allocations: 50.53 kB / 0.5814 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.068e-05/0.6929, allocations: 30.53 kB / 0.5814 GB, free: 6.676 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001109/0.6931, allocations: 131.1 kB / 0.5816 GB, free: 6.594 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6931, allocations: 3.375 kB / 0.5816 GB, free: 6.594 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001759/0.6948, allocations: 386.9 kB / 0.5819 GB, free: 6.547 MB / 478.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 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005138/0.7, allocations: 2.379 MB / 0.5842 GB, free: 5.562 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.7018, allocations: 0.6535 MB / 0.5849 GB, free: 5.543 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.7019, allocations: 0 / 0.5849 GB, free: 5.543 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.7029, allocations: 0.5402 MB / 0.5854 GB, free: 5.316 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008272/0.7038, allocations: 103.4 kB / 0.5855 GB, free: 5.301 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007806/0.7116, allocations: 4.235 MB / 0.5896 GB, free: 3.086 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.7121, allocations: 0.7846 MB / 0.5904 GB, free: 2.383 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008491/0.7129, allocations: 184.2 kB / 0.5906 GB, free: 2.293 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.7133, allocations: 131.7 kB / 0.5907 GB, free: 2.281 MB / 478.1 MB Notification: Performance of SimCode: time 6.11e-07/0.7133, allocations: 0 / 0.5907 GB, free: 2.281 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05774/0.7711, allocations: 19.89 MB / 0.6101 GB, free: 4.188 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/14.09, allocations: 4 kB / 0.6101 GB, free: 4.184 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_trunk_Modelica_Media_Examples_MixtureGases.fmu > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.MixtureGases_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches