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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 55.91 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1037, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3856/0.4893, allocations: 153 MB / 0.5574 GB, free: 13.42 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00526/0.4946, allocations: 4.053 MB / 0.5613 GB, free: 9.363 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.4948, allocations: 0 / 0.5613 GB, free: 9.363 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000463/0.4952, allocations: 107.5 kB / 0.5614 GB, free: 9.258 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002913/0.4981, allocations: 1.194 MB / 0.5626 GB, free: 8.062 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.4991, allocations: 386 kB / 0.563 GB, free: 7.688 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006546/0.4998, allocations: 458.8 kB / 0.5634 GB, free: 7.238 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.597e-05/0.4999, allocations: 9.562 kB / 0.5634 GB, free: 7.23 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004534/0.5003, allocations: 231.1 kB / 0.5636 GB, free: 7.004 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.5006, allocations: 151.4 kB / 0.5638 GB, free: 6.855 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.5006, allocations: 20 kB / 0.5638 GB, free: 6.836 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004199/0.5048, allocations: 2.163 MB / 0.5659 GB, free: 4.668 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.505, allocations: 131.7 kB / 0.566 GB, free: 4.539 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.5052, allocations: 171.3 kB / 0.5662 GB, free: 4.371 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002869/0.5081, allocations: 1.531 MB / 0.5677 GB, free: 2.836 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.5081, allocations: 4 kB / 0.5677 GB, free: 2.832 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5081, allocations: 0 / 0.5677 GB, free: 2.832 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.5081, allocations: 0 / 0.5677 GB, free: 2.832 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.002457/0.5106, allocations: 0.7789 MB / 0.5684 GB, free: 2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5106, allocations: 12.03 kB / 0.5685 GB, free: 1.988 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.5107, allocations: 66.73 kB / 0.5685 GB, free: 1.914 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007659/0.5115, allocations: 112.6 kB / 0.5686 GB, free: 1.805 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.512, allocations: 287.1 kB / 0.5689 GB, free: 1.484 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.512, allocations: 20.55 kB / 0.5689 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.5121, allocations: 31.95 kB / 0.569 GB, free: 1.434 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.5133, allocations: 0.5887 MB / 0.5695 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.5133, allocations: 0 / 0.5695 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/0.5134, allocations: 16 kB / 0.5695 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/0.5134, allocations: 16.44 kB / 0.5696 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.5148, allocations: 0.6463 MB / 0.5702 GB, free: 164 kB / 462.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.003181/0.518, allocations: 1.275 MB / 0.5714 GB, free: 14.83 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.519, allocations: 352.8 kB / 0.5718 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/0.5195, allocations: 165.6 kB / 0.5719 GB, free: 14.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0028/0.5223, allocations: 1.384 MB / 0.5733 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.5224, allocations: 51.47 kB / 0.5733 GB, free: 12.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 3.196e-06/0.5224, allocations: 0 / 0.5733 GB, free: 12.63 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.0168/0.5392, allocations: 3.48 MB / 0.5767 GB, free: 8.957 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.375e-05/0.5393, allocations: 89.11 kB / 0.5768 GB, free: 8.852 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.5394, allocations: 184.8 kB / 0.577 GB, free: 8.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.541e-05/0.5395, allocations: 33.7 kB / 0.577 GB, free: 8.625 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.5396, allocations: 180.6 kB / 0.5772 GB, free: 8.441 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.5398, allocations: 182.4 kB / 0.5774 GB, free: 8.262 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/0.5401, allocations: 118.3 kB / 0.5775 GB, free: 8.137 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.5403, allocations: 338.8 kB / 0.5778 GB, free: 7.797 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/0.5411, allocations: 265.1 kB / 0.5781 GB, free: 7.539 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000975/0.5421, allocations: 425.5 kB / 0.5785 GB, free: 7.055 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.544, allocations: 0.6973 MB / 0.5791 GB, free: 6.293 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.544, allocations: 0 / 0.5791 GB, free: 6.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002339/0.5463, allocations: 0.779 MB / 0.5799 GB, free: 5.504 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.5463, allocations: 7.938 kB / 0.5799 GB, free: 5.496 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.5463, allocations: 8 kB / 0.5799 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000258/0.5466, allocations: 66.17 kB / 0.58 GB, free: 5.418 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.5479, allocations: 185.2 kB / 0.5802 GB, free: 5.238 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00086/0.5487, allocations: 1.074 MB / 0.5812 GB, free: 4.113 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.5496, allocations: 47.89 kB / 0.5813 GB, free: 4.066 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.402e-05/0.5497, allocations: 35.98 kB / 0.5813 GB, free: 4.031 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.0003075/0.55, allocations: 177.7 kB / 0.5815 GB, free: 3.848 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.5501, allocations: 27.86 kB / 0.5815 GB, free: 3.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.5526, allocations: 0.7906 MB / 0.5823 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.5526, allocations: 4 kB / 0.5823 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.5526, allocations: 4 kB / 0.5823 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.5526, allocations: 3.984 kB / 0.5823 GB, free: 3.004 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.5563, allocations: 1.551 MB / 0.5838 GB, free: 1.359 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.5563, allocations: 4 kB / 0.5838 GB, free: 1.355 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.5575, allocations: 143.7 kB / 0.5839 GB, free: 1.215 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001741/0.5577, allocations: 49.84 kB / 0.584 GB, free: 1.16 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.502e-05/0.5578, allocations: 29.91 kB / 0.584 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002183/0.5599, allocations: 2.727 MB / 0.5867 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5599, allocations: 0 / 0.5867 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002941/0.5629, allocations: 1.08 MB / 0.5877 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.563, allocations: 96.97 kB / 0.5878 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.959e-05/0.5631, allocations: 19.97 kB / 0.5878 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008891/0.564, allocations: 44.83 kB / 0.5879 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/0.5641, allocations: 47.81 kB / 0.5879 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.5642, allocations: 35.97 kB / 0.588 GB, free: 12.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.5643, allocations: 120.4 kB / 0.5881 GB, free: 12.63 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5643, allocations: 0 / 0.5881 GB, free: 12.63 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001621/0.5659, allocations: 391.2 kB / 0.5884 GB, free: 12.25 MB / 494.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.006276/0.5722, allocations: 2.377 MB / 0.5908 GB, free: 9.812 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.5743, allocations: 0.637 MB / 0.5914 GB, free: 9.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.5743, allocations: 4 kB / 0.5914 GB, free: 9.176 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.5755, allocations: 0.5178 MB / 0.5919 GB, free: 8.633 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008365/0.5764, allocations: 107 kB / 0.592 GB, free: 8.535 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009085/0.5854, allocations: 4.249 MB / 0.5961 GB, free: 4.016 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.5859, allocations: 0.7892 MB / 0.5969 GB, free: 3.203 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008352/0.5867, allocations: 183.1 kB / 0.5971 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.5872, allocations: 131.3 kB / 0.5972 GB, free: 2.895 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5872, allocations: 0 / 0.5972 GB, free: 2.895 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09016/0.6773, allocations: 19.69 MB / 0.6164 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.48, allocations: 14.06 kB / 0.6165 GB, free: 15.3 MB / 0.5137 GB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.00019992 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.090430219192058]