Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 111.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 200 kB / 18 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008996/0.0008996, allocations: 43.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2294, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3771/0.6065, allocations: 152.5 MB / 0.5398 GB, free: 1.742 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003916/0.6105, allocations: 4.034 MB / 0.5437 GB, free: 1.73 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.6106, allocations: 5.906 kB / 0.5437 GB, free: 1.73 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003941/0.611, allocations: 106 kB / 0.5438 GB, free: 1.727 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.6137, allocations: 1.174 MB / 0.545 GB, free: 1.68 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009068/0.6146, allocations: 391.5 kB / 0.5453 GB, free: 1.668 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.6151, allocations: 459.9 kB / 0.5458 GB, free: 1.668 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.326e-05/0.6152, allocations: 9.938 kB / 0.5458 GB, free: 1.668 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.6155, allocations: 231.2 kB / 0.546 GB, free: 1.664 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.6156, allocations: 146.7 kB / 0.5462 GB, free: 1.664 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.6157, allocations: 16.47 kB / 0.5462 GB, free: 1.664 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.6188, allocations: 2.057 MB / 0.5482 GB, free: 1.648 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.619, allocations: 132 kB / 0.5483 GB, free: 1.648 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002079/0.6192, allocations: 166.7 kB / 0.5485 GB, free: 1.648 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00203/0.6212, allocations: 1.535 MB / 0.55 GB, free: 1.598 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.6213, allocations: 2.656 kB / 0.55 GB, free: 1.598 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6213, allocations: 0.9062 kB / 0.55 GB, free: 1.598 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.6213, allocations: 0 / 0.55 GB, free: 1.598 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.002064/0.6234, allocations: 0.7701 MB / 0.5507 GB, free: 17.12 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.6234, allocations: 9.875 kB / 0.5507 GB, free: 17.12 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.367e-05/0.6235, allocations: 65.89 kB / 0.5508 GB, free: 17.09 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006771/0.6242, allocations: 112.9 kB / 0.5509 GB, free: 17.07 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.6245, allocations: 284.3 kB / 0.5512 GB, free: 16.86 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.6245, allocations: 23.47 kB / 0.5512 GB, free: 16.86 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.6246, allocations: 23.69 kB / 0.5512 GB, free: 16.86 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009069/0.6255, allocations: 0.5938 MB / 0.5518 GB, free: 16.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.6255, allocations: 0 / 0.5518 GB, free: 16.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.684e-05/0.6256, allocations: 14.69 kB / 0.5518 GB, free: 16.8 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.6256, allocations: 20.8 kB / 0.5518 GB, free: 16.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.6267, allocations: 0.6367 MB / 0.5524 GB, free: 16.8 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.00251/0.6292, allocations: 1.295 MB / 0.5537 GB, free: 16.38 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007976/0.63, allocations: 346.9 kB / 0.554 GB, free: 16.33 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.6304, allocations: 182.3 kB / 0.5542 GB, free: 16.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002168/0.6326, allocations: 1.379 MB / 0.5556 GB, free: 15.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.6326, allocations: 42.25 kB / 0.5556 GB, free: 15.14 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 1.933e-06/0.6326, allocations: 3.938 kB / 0.5556 GB, free: 15.14 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.01413/0.6468, allocations: 3.481 MB / 0.559 GB, free: 14.03 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.6468, allocations: 86.64 kB / 0.5591 GB, free: 13.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.647, allocations: 178.3 kB / 0.5593 GB, free: 13.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/0.6471, allocations: 35.89 kB / 0.5593 GB, free: 13.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.6472, allocations: 188 kB / 0.5595 GB, free: 13.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.6473, allocations: 169.5 kB / 0.5596 GB, free: 13.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.6475, allocations: 114.4 kB / 0.5597 GB, free: 13.52 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.6476, allocations: 343.2 kB / 0.5601 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006412/0.6483, allocations: 265.8 kB / 0.5603 GB, free: 13.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.649, allocations: 424.1 kB / 0.5607 GB, free: 13.03 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001371/0.6504, allocations: 0.695 MB / 0.5614 GB, free: 12.85 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.6504, allocations: 2.562 kB / 0.5614 GB, free: 12.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001751/0.6521, allocations: 0.7783 MB / 0.5622 GB, free: 12.79 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.6522, allocations: 9.219 kB / 0.5622 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.6522, allocations: 5.344 kB / 0.5622 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.6524, allocations: 55.38 kB / 0.5622 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.6536, allocations: 180.2 kB / 0.5624 GB, free: 12.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006912/0.6543, allocations: 1.084 MB / 0.5635 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007786/0.6551, allocations: 42.06 kB / 0.5635 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.676e-05/0.6552, allocations: 42.3 kB / 0.5635 GB, free: 11.73 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.0002795/0.6555, allocations: 178.2 kB / 0.5637 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.6556, allocations: 26.41 kB / 0.5637 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.6576, allocations: 0.7915 MB / 0.5645 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.6576, allocations: 4.875 kB / 0.5645 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.6576, allocations: 3.406 kB / 0.5645 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.6576, allocations: 3.734 kB / 0.5645 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00298/0.6606, allocations: 1.55 MB / 0.566 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.6606, allocations: 3.031 kB / 0.566 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.6617, allocations: 146.3 kB / 0.5662 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000146/0.6618, allocations: 49.25 kB / 0.5662 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.946e-05/0.6619, allocations: 25.45 kB / 0.5663 GB, free: 10.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00182/0.6637, allocations: 2.731 MB / 0.5689 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.6637, allocations: 2.281 kB / 0.5689 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.666, allocations: 1.076 MB / 0.57 GB, free: 7.902 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.037e-05/0.6661, allocations: 98.58 kB / 0.5701 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.6662, allocations: 17.91 kB / 0.5701 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008144/0.667, allocations: 38.98 kB / 0.5701 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.6671, allocations: 44.27 kB / 0.5702 GB, free: 7.793 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-05/0.6672, allocations: 36.31 kB / 0.5702 GB, free: 7.793 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001141/0.6673, allocations: 123.5 kB / 0.5703 GB, free: 7.719 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6673, allocations: 0 / 0.5703 GB, free: 7.719 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001604/0.6689, allocations: 387.9 kB / 0.5707 GB, free: 7.672 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.004946/0.6739, allocations: 2.375 MB / 0.573 GB, free: 6.773 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.6756, allocations: 0.6552 MB / 0.5736 GB, free: 6.766 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6757, allocations: 0.9062 kB / 0.5736 GB, free: 6.766 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009585/0.6766, allocations: 0.5377 MB / 0.5742 GB, free: 6.539 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007795/0.6774, allocations: 96 kB / 0.5743 GB, free: 6.527 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007715/0.6851, allocations: 4.237 MB / 0.5784 GB, free: 4.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.6855, allocations: 0.7793 MB / 0.5792 GB, free: 3.641 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008051/0.6863, allocations: 190.3 kB / 0.5793 GB, free: 3.547 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.6867, allocations: 131.4 kB / 0.5795 GB, free: 3.535 MB / 478.1 MB Notification: Performance of SimCode: time 7.42e-07/0.6867, allocations: 0 / 0.5795 GB, free: 3.535 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04381/0.7305, allocations: 19.81 MB / 0.5988 GB, free: 9.078 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/13.22, allocations: 11.03 kB / 0.5988 GB, free: 9.07 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches